fix: license and refactor call to post
This commit is contained in:
parent
b13e9dcf8d
commit
02c7c97f68
2
LICENSE
2
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
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue