chore(deps): remove dependencies from handler package
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 42s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 48s

This commit was merged in pull request #287.
This commit is contained in:
2024-12-01 21:50:22 +01:00
parent e201ac7b2c
commit 48ec7b64ac
5 changed files with 46 additions and 54 deletions

View File

@@ -15,7 +15,7 @@ import (
)
type WorkoutHandler interface {
handle(router *http.ServeMux)
Handle(router *http.ServeMux)
}
type WorkoutHandlerImpl struct {
@@ -25,7 +25,7 @@ type WorkoutHandlerImpl struct {
serverSettings *types.ServerSettings
}
func NewWorkoutHandler(db *sql.DB, service service.WorkoutService, auth service.AuthService, serverSettings *types.ServerSettings) HandlerAuth {
func NewWorkoutHandler(db *sql.DB, service service.WorkoutService, auth service.AuthService, serverSettings *types.ServerSettings) WorkoutHandler {
return WorkoutHandlerImpl{
db: db,
service: service,
@@ -34,7 +34,7 @@ func NewWorkoutHandler(db *sql.DB, service service.WorkoutService, auth service.
}
}
func (handler WorkoutHandlerImpl) handle(router *http.ServeMux) {
func (handler WorkoutHandlerImpl) Handle(router *http.ServeMux) {
router.Handle("/workout", handler.handleWorkoutPage())
router.Handle("POST /api/workout", handler.handleAddWorkout())
router.Handle("GET /api/workout", handler.handleGetWorkout())