fix: license and refactor call to post

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

View File

@ -1,6 +1,6 @@
---- Definitions ---- ---- Definitions ----
license means right to use 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 contributors means every man who has helped to improve this software

View File

@ -51,10 +51,7 @@ func (s *RestServer) Start(apiPort, views string) error {
s.loadViews() s.loadViews()
prosodyHdl := handler.NewProsodyHandler(s.prosodyService, s.fail2banSrv) prosodyHdl := handler.NewProsodyHandler(s.prosodyService, s.fail2banSrv)
s.app.Post("/changePassword", func(c *fiber.Ctx) error { s.app.Post("/changePassword", prosodyHdl.Post)
return prosodyHdl.Post(c)
})
if err := s.app.Listen(":" + apiPort); err != nil { if err := s.app.Listen(":" + apiPort); err != nil {
log.Fatalln("app.Listen:", err) log.Fatalln("app.Listen:", err)