diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-05-06 17:43:03 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-05-06 17:43:03 +0300 |
| commit | e1fde2db1a8003a2e48d267dfc35ca8c8fc721da (patch) | |
| tree | 9c71a8cef508fd1aa22e03ea1ff8f6abbc07296e /backend/controllers/loginController.go | |
| parent | fix: enable cors (diff) | |
| download | lphub-e1fde2db1a8003a2e48d267dfc35ca8c8fc721da.tar.gz lphub-e1fde2db1a8003a2e48d267dfc35ca8c8fc721da.tar.bz2 lphub-e1fde2db1a8003a2e48d267dfc35ca8c8fc721da.zip | |
doc: token endpoint
Diffstat (limited to '')
| -rw-r--r-- | backend/controllers/loginController.go | 12 |
1 files changed, 6 insertions, 6 deletions
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) { | |||
| 85 | 85 | ||
| 86 | // GET Token | 86 | // GET Token |
| 87 | // | 87 | // |
| 88 | // @Summary Gets the token cookie value from the user. | 88 | // @Summary Gets the token cookie value from the user. |
| 89 | // @Tags auth | 89 | // @Tags auth |
| 90 | // @Produce json | 90 | // @Produce json |
| 91 | // | 91 | // |
| 92 | // @Success 200 {object} models.Respnose{data=models.LoginResponse} | 92 | // @Success 200 {object} models.Response{data=models.LoginResponse} |
| 93 | // @Failure 404 {object} models.Response | 93 | // @Failure 404 {object} models.Response |
| 94 | // @Router /token [get] | 94 | // @Router /token [get] |
| 95 | func GetCookie(c *gin.Context) { | 95 | func GetCookie(c *gin.Context) { |
| 96 | cookie, err := c.Cookie("token") | 96 | cookie, err := c.Cookie("token") |
| 97 | if err != nil { | 97 | if err != nil { |