From 02c7c97f68e62e14e59633b4e9f56c83731991e2 Mon Sep 17 00:00:00 2001 From: Urko Date: Thu, 20 Jul 2023 11:31:10 +0200 Subject: [PATCH] fix: license and refactor call to post --- LICENSE | 2 +- internal/api/server.go | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) 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)