Fixed root redirect
This commit is contained in:
parent
e7b4436659
commit
62891d7c21
2
main.go
2
main.go
|
@ -43,7 +43,7 @@ func main() {
|
||||||
r.Handle(route.From+"/", redirectTo(route.To))
|
r.Handle(route.From+"/", redirectTo(route.To))
|
||||||
r.Handle(route.From, redirectTo(route.To))
|
r.Handle(route.From, redirectTo(route.To))
|
||||||
}
|
}
|
||||||
r.Handle("/", redirectTo("/"))
|
r.Handle("/", redirectTo("https://lmika.org/"))
|
||||||
|
|
||||||
svr := http.Server{
|
svr := http.Server{
|
||||||
Addr: fmt.Sprintf(":%v", port),
|
Addr: fmt.Sprintf(":%v", port),
|
||||||
|
|
Loading…
Reference in a new issue