Skip to content

Commit 9641a93

Browse files
committed
chore: redirect from / to /ui in API
1 parent 63b8c7a commit 9641a93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/mb3server/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ func addSwaggerEndpoint(router chi.Router) {
5151
}
5252

5353
router.Handle("/ui/*", http.StripPrefix("/ui/", http.FileServer(http.FS(fsys))))
54+
router.Handle("/", http.RedirectHandler("/ui/", http.StatusFound))
5455
}

0 commit comments

Comments
 (0)