feat(server): serve root at /rooturl on top of /rooturl/

This commit is contained in:
Quentin McGaw
2024-06-14 08:13:51 +00:00
parent cc995a79c8
commit 76afd8361e

View File

@@ -43,6 +43,9 @@ func newHandler(ctx context.Context, rootURL string,
router.Use(middleware.Logger)
rootURL = strings.TrimSuffix(rootURL, "/")
if rootURL != "" {
router.Get(rootURL, handlers.index)
}
router.Get(rootURL+"/", handlers.index)
router.Get(rootURL+"/update", handlers.update)