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 /docs/docs.go | |
| parent | fix: enable cors (diff) | |
| download | lphub-e1fde2db1a8003a2e48d267dfc35ca8c8fc721da.tar.gz lphub-e1fde2db1a8003a2e48d267dfc35ca8c8fc721da.tar.bz2 lphub-e1fde2db1a8003a2e48d267dfc35ca8c8fc721da.zip | |
doc: token endpoint
Diffstat (limited to 'docs/docs.go')
| -rw-r--r-- | docs/docs.go | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/docs.go b/docs/docs.go index cd129f0..bb6f6ab 100644 --- a/docs/docs.go +++ b/docs/docs.go | |||
| @@ -680,6 +680,43 @@ const docTemplate = `{ | |||
| 680 | } | 680 | } |
| 681 | } | 681 | } |
| 682 | }, | 682 | }, |
| 683 | "/token": { | ||
| 684 | "get": { | ||
| 685 | "produces": [ | ||
| 686 | "application/json" | ||
| 687 | ], | ||
| 688 | "tags": [ | ||
| 689 | "auth" | ||
| 690 | ], | ||
| 691 | "summary": "Gets the token cookie value from the user.", | ||
| 692 | "responses": { | ||
| 693 | "200": { | ||
| 694 | "description": "OK", | ||
| 695 | "schema": { | ||
| 696 | "allOf": [ | ||
| 697 | { | ||
| 698 | "$ref": "#/definitions/models.Response" | ||
| 699 | }, | ||
| 700 | { | ||
| 701 | "type": "object", | ||
| 702 | "properties": { | ||
| 703 | "data": { | ||
| 704 | "$ref": "#/definitions/models.LoginResponse" | ||
| 705 | } | ||
| 706 | } | ||
| 707 | } | ||
| 708 | ] | ||
| 709 | } | ||
| 710 | }, | ||
| 711 | "404": { | ||
| 712 | "description": "Not Found", | ||
| 713 | "schema": { | ||
| 714 | "$ref": "#/definitions/models.Response" | ||
| 715 | } | ||
| 716 | } | ||
| 717 | } | ||
| 718 | } | ||
| 719 | }, | ||
| 683 | "/users/{id}": { | 720 | "/users/{id}": { |
| 684 | "get": { | 721 | "get": { |
| 685 | "consumes": [ | 722 | "consumes": [ |