From e1fde2db1a8003a2e48d267dfc35ca8c8fc721da Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Sat, 6 May 2023 17:43:03 +0300 Subject: doc: token endpoint --- backend/controllers/loginController.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'backend/controllers') diff --git a/backend/controllers/loginController.go b/backend/controllers/loginController.go index 06cc0ba..6e1c299 100644 --- a/backend/controllers/loginController.go +++ b/backend/controllers/loginController.go @@ -85,13 +85,13 @@ func Login(c *gin.Context) { // GET Token // -// @Summary Gets the token cookie value from the user. -// @Tags auth -// @Produce json +// @Summary Gets the token cookie value from the user. +// @Tags auth +// @Produce json // -// @Success 200 {object} models.Respnose{data=models.LoginResponse} -// @Failure 404 {object} models.Response -// @Router /token [get] +// @Success 200 {object} models.Response{data=models.LoginResponse} +// @Failure 404 {object} models.Response +// @Router /token [get] func GetCookie(c *gin.Context) { cookie, err := c.Cookie("token") if err != nil { -- cgit v1.2.3