#73 copy sign in form from other branch and some renaming
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 47s

This commit is contained in:
Tim
2024-08-25 22:25:32 +02:00
parent 4360d31bb2
commit 111cd2daab
13 changed files with 152 additions and 57 deletions

View File

@@ -16,7 +16,9 @@ func getHandler(db *sql.DB) http.Handler {
// Serve static files (CSS, JS and images)
router.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("./static/"))))
router.HandleFunc("/app", service.App)
router.HandleFunc("/app", service.WorkoutPage)
router.HandleFunc("/auth/signin", service.SignInPage)
// router.HandleFunc("/auth/signup", service.SignUpPage)
router.HandleFunc("POST /api/workout", service.NewWorkout(db))
router.HandleFunc("GET /api/workout", service.GetWorkouts(db))
router.HandleFunc("DELETE /api/workout", service.DeleteWorkout(db))