diff --git a/cmd/api/init/router/router.go b/cmd/api/init/router/router.go index 1a8f42b5..8f08cc91 100644 --- a/cmd/api/init/router/router.go +++ b/cmd/api/init/router/router.go @@ -65,6 +65,7 @@ func InitRouter(auth *auth.Handler, authRouter.Methods("POST").Path("/checkAuth").HandlerFunc(auth.HealthCheck) authRouter.Methods("POST").Path("/loginCheck").HandlerFunc(auth.CheckLoginUnique) authRouter.Methods("POST").Path("/logout").HandlerFunc(auth.LogOut) + authRouter.Methods("PUTCH").Path("/password").HandlerFunc(auth.ChangePassword) } accountRouter := apiRouter.PathPrefix("/account").Subrouter() diff --git a/cmd/api/main.go b/cmd/api/main.go index c73bef60..1d19b28b 100644 --- a/cmd/api/main.go +++ b/cmd/api/main.go @@ -28,7 +28,7 @@ import ( // @securityDefinitions AuthKey // @in header -// @name session_id +// @name session_id func main() { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)