Skip to content

Commit

Permalink
Redirect / to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
poundifdef committed Apr 6, 2024
1 parent c5f0a78 commit 0d8173f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/api/router.go
Expand Up @@ -38,6 +38,10 @@ func CreateMux(
r := chi.NewRouter()
r.Use(PrometheusMiddleware)
r.Get("/healthcheck", apiFunctions.Healthcheck)
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "/dashboard/", http.StatusMovedPermanently)
})

r.Get("/share/{uuid}/data.{format}", apiFunctions.ShareData)

api := chi.NewRouter()
Expand Down

0 comments on commit 0d8173f

Please sign in to comment.