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 ----
|
---- 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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue