fix: license and refactor call to post

This commit is contained in:
2023-07-20 11:31:10 +02:00
parent b13e9dcf8d
commit 02c7c97f68
2 changed files with 2 additions and 5 deletions

View File

@@ -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)