Add redirect from root to /notes/
This commit is contained in:
parent
8f60040f86
commit
c82db192e1
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ func main() {
|
|||
router := http.NewServeMux()
|
||||
notesRouter := views.GetRoutes("/notes")
|
||||
|
||||
router.Handle("/", http.RedirectHandler("/notes/", http.StatusFound))
|
||||
router.Handle("/notes/", http.StripPrefix("/notes", notesRouter))
|
||||
router.Handle(
|
||||
conf.Conf.Static.Root,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue