diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-05-06 19:53:25 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-05-06 19:53:25 +0300 |
| commit | fbdc0b813944937af29da74f4790e52a2522c480 (patch) | |
| tree | 94f47aaeec7bdf4eab60db340ef654ac391ed9e9 /docs/docs.go | |
| parent | doc: token endpoint (diff) | |
| download | lphub-fbdc0b813944937af29da74f4790e52a2522c480.tar.gz lphub-fbdc0b813944937af29da74f4790e52a2522c480.tar.bz2 lphub-fbdc0b813944937af29da74f4790e52a2522c480.zip | |
feat: logout endpoint
Diffstat (limited to 'docs/docs.go')
| -rw-r--r-- | docs/docs.go | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/docs.go b/docs/docs.go index bb6f6ab..d39fd1c 100644 --- a/docs/docs.go +++ b/docs/docs.go | |||
| @@ -715,6 +715,41 @@ const docTemplate = `{ | |||
| 715 | } | 715 | } |
| 716 | } | 716 | } |
| 717 | } | 717 | } |
| 718 | }, | ||
| 719 | "delete": { | ||
| 720 | "produces": [ | ||
| 721 | "application/json" | ||
| 722 | ], | ||
| 723 | "tags": [ | ||
| 724 | "auth" | ||
| 725 | ], | ||
| 726 | "summary": "Deletes the token cookie from the user.", | ||
| 727 | "responses": { | ||
| 728 | "200": { | ||
| 729 | "description": "OK", | ||
| 730 | "schema": { | ||
| 731 | "allOf": [ | ||
| 732 | { | ||
| 733 | "$ref": "#/definitions/models.Response" | ||
| 734 | }, | ||
| 735 | { | ||
| 736 | "type": "object", | ||
| 737 | "properties": { | ||
| 738 | "data": { | ||
| 739 | "$ref": "#/definitions/models.LoginResponse" | ||
| 740 | } | ||
| 741 | } | ||
| 742 | } | ||
| 743 | ] | ||
| 744 | } | ||
| 745 | }, | ||
| 746 | "404": { | ||
| 747 | "description": "Not Found", | ||
| 748 | "schema": { | ||
| 749 | "$ref": "#/definitions/models.Response" | ||
| 750 | } | ||
| 751 | } | ||
| 752 | } | ||
| 718 | } | 753 | } |
| 719 | }, | 754 | }, |
| 720 | "/users/{id}": { | 755 | "/users/{id}": { |