fix: restructure handler yet again #181
Some checks failed
Build Docker Image / Explore-Gitea-Actions (push) Has been cancelled
Some checks failed
Build Docker Image / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
@@ -21,6 +21,7 @@ func GetHandler(db *sql.DB) http.Handler {
|
||||
|
||||
router.Handle("/workout", auth(db, workoutUi(db)))
|
||||
router.Handle("/api/workout", auth(db, workoutApi(db)))
|
||||
// Needed a second time with trailing slash, otherwise either /api/workout or /api/workout/{id} does not match
|
||||
router.Handle("/api/workout/", auth(db, workoutApi(db)))
|
||||
|
||||
return middleware.Logging(
|
||||
|
||||
Reference in New Issue
Block a user