From 32689531ec20871be9828430d66b4dc4c3c51481 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 3 Jul 2023 18:10:01 +0200 Subject: [PATCH] chore(docs): move login and register routes to auth category in api docs --- pkg/routes/api/v1/login.go | 2 +- pkg/routes/api/v1/user_register.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/routes/api/v1/login.go b/pkg/routes/api/v1/login.go index 58607be02ce..214e5fbc8f7 100644 --- a/pkg/routes/api/v1/login.go +++ b/pkg/routes/api/v1/login.go @@ -34,7 +34,7 @@ import ( // Login is the login handler // @Summary Login // @Description Logs a user in. Returns a JWT-Token to authenticate further requests. -// @tags user +// @tags auth // @Accept json // @Produce json // @Param credentials body user.Login true "The login credentials" diff --git a/pkg/routes/api/v1/user_register.go b/pkg/routes/api/v1/user_register.go index 1fcc77b48ef..5e3001f3dc1 100644 --- a/pkg/routes/api/v1/user_register.go +++ b/pkg/routes/api/v1/user_register.go @@ -31,7 +31,7 @@ import ( // RegisterUser is the register handler // @Summary Register // @Description Creates a new user account. -// @tags user +// @tags auth // @Accept json // @Produce json // @Param credentials body user.APIUserPassword true "The user credentials"