fix: migrate sigin to testable code #181
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 50s

This commit is contained in:
2024-10-04 23:25:57 +02:00
parent cbf5b39294
commit 2ff6f92235
6 changed files with 256 additions and 127 deletions

View File

@@ -15,7 +15,9 @@ func GetHandler(d *sql.DB, serverSettings *types.ServerSettings) http.Handler {
router.HandleFunc("/", service.HandleIndexAnd404(d, serverSettings))
handlerAuth := NewHandlerAuth(d, service.NewServiceAuthImpl(db.NewDbAuthSqlite(d)), serverSettings)
dbAuth := db.NewDbAuthSqlite(d)
serviceAuth := service.NewServiceAuthImpl(d, dbAuth, serverSettings)
handlerAuth := NewHandlerAuth(d, serviceAuth, serverSettings)
// Serve static files (CSS, JS and images)
router.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("./static/"))))