add configurable name
All checks were successful
Release / publish (push) Successful in 5m27s

This commit is contained in:
2025-07-08 11:57:16 +02:00
parent 30dac9f12f
commit 68574ad289
12 changed files with 461 additions and 31 deletions

View File

@@ -46,6 +46,8 @@ func app(r *mux.Router, cfg *config.Config) {
blg := posts.New(db)
auth := auth.New(&cfg.Auth, db)
// config
r.HandleFunc("/conf", cfg.Handle)
// auth
r.HandleFunc("/auth/login", auth.Login).Methods("POST")
r.HandleFunc("/auth/signup", auth.Signup).Methods("POST")