diff --git a/LICENSE b/LICENSE index 7f4fd9a..a925418 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ ---- Definitions ---- license means right to use -author means who had initial idea, who research about jurisprudence and the who who started, in this case : Urko: Bein. +author means who had initial idea, in this case : Urko: Bein. contributors means every man who has helped to improve this software diff --git a/internal/api/server.go b/internal/api/server.go index f8a47b2..d3eda32 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -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)