chore(auth): finalize test of new structure
This commit is contained in:
@@ -13,12 +13,14 @@ func GetHandler(db *sql.DB) http.Handler {
|
||||
|
||||
router.HandleFunc("/", service.HandleIndexAnd404(db))
|
||||
|
||||
handlerAuth := NewHandlerAuth(db, service.NewServiceAuthImpl(db))
|
||||
|
||||
// Serve static files (CSS, JS and images)
|
||||
router.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("./static/"))))
|
||||
|
||||
handleWorkout(db, router)
|
||||
|
||||
handleAuth(db, router)
|
||||
handlerAuth.handle(router)
|
||||
|
||||
return middleware.Logging(middleware.EnableCors(router))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user