Allow using username as identifier

This commit is contained in:
2023-10-21 02:15:19 +02:00
parent ada2f91a84
commit 59b315f209
4 changed files with 12 additions and 4 deletions

View File

@@ -35,6 +35,7 @@ func NewServer(config *Config) (*UserServer, error) {
r.Get("/", InfoHandler)
r.Post("/users", srv.CreateUserHandler)
r.Post("/users/:id/password", srv.SetPasswordHandler)
r.Post("/users/:username/verify", srv.VerifyHandler)
srv.Addr = config.ListenAddr