Fixed root redirect
This commit is contained in:
parent
e7b4436659
commit
62891d7c21
1 changed files with 1 additions and 1 deletions
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("/", redirectTo("/"))
|
||||
r.Handle("/", redirectTo("https://lmika.org/"))
|
||||
|
||||
svr := http.Server{
|
||||
Addr: fmt.Sprintf(":%v", port),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue