diff --git a/internal/api/router/router.go b/internal/api/router/router.go index 9f17880..dad7264 100644 --- a/internal/api/router/router.go +++ b/internal/api/router/router.go @@ -16,5 +16,10 @@ func New(cfg *config.Config, registry service.RegistryService, authService auth. // Register routes for all API versions RegisterV0Routes(mux, cfg, registry, authService) + // Redirect root to Swagger UI + mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + http.Redirect(w, r, "/v0/swagger/index.html", http.StatusFound) + }) + return mux }