Allow using username as identifier
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user