fix: license and refactor call to post
This commit is contained in:
@@ -51,10 +51,7 @@ func (s *RestServer) Start(apiPort, views string) error {
|
||||
s.loadViews()
|
||||
|
||||
prosodyHdl := handler.NewProsodyHandler(s.prosodyService, s.fail2banSrv)
|
||||
s.app.Post("/changePassword", func(c *fiber.Ctx) error {
|
||||
|
||||
return prosodyHdl.Post(c)
|
||||
})
|
||||
s.app.Post("/changePassword", prosodyHdl.Post)
|
||||
|
||||
if err := s.app.Listen(":" + apiPort); err != nil {
|
||||
log.Fatalln("app.Listen:", err)
|
||||
|
||||
Reference in New Issue
Block a user