Add live docs URL to README and remove broken /docs shortcut

This commit is contained in:
2026-03-27 01:09:14 +01:00
parent a07d033e93
commit c20720f120
2 changed files with 3 additions and 4 deletions
-3
View File
@@ -30,9 +30,6 @@ func NewRouter(appURL string, habitHandlers *HabitHandlers, authHandlers *AuthHa
AllowCredentials: true,
}))
r.Get("/docs", httpSwagger.Handler(
httpSwagger.URL("/api/v1/docs/doc.json"),
))
r.Get("/api/v1/docs", func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "/api/v1/docs/index.html", http.StatusMovedPermanently)
})