#16 deletiion capabillity
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 1m18s

This commit is contained in:
Tim
2024-07-30 22:04:40 +02:00
parent 3af10dc9fc
commit d7858505b9
5 changed files with 58 additions and 7 deletions

View File

@@ -41,5 +41,6 @@ func getRouter(db *sql.DB) *http.ServeMux {
var router = http.NewServeMux()
router.HandleFunc("POST /workout", workout.NewWorkout(db))
router.HandleFunc("GET /workout", workout.GetWorkouts(db))
router.HandleFunc("DELETE /workout", workout.DeleteWorkout(db))
return router
}