mirror of
https://github.com/Jinnrry/PMail.git
synced 2025-02-20 11:43:09 +08:00
12 lines
237 B
Go
12 lines
237 B
Go
package controllers
|
|
|
|
import (
|
|
"net/http"
|
|
"pmail/config"
|
|
)
|
|
|
|
func Interceptor(w http.ResponseWriter, r *http.Request) {
|
|
URL := "https://" + config.Instance.WebDomain + r.URL.Path
|
|
http.Redirect(w, r, URL, http.StatusMovedPermanently)
|
|
}
|