Skip to content

Commit

Permalink
get new access token From both admin/user -> only users
Browse files Browse the repository at this point in the history
  • Loading branch information
Kannan112 committed Dec 20, 2023
1 parent a5c702d commit c1d9f65
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cmd/api/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,9 @@ const docTemplate = `{
"produces": [
"application/json"
],
"tags": [
"Users"
],
"summary": "Get Access Token",
"parameters": [
{
Expand Down
3 changes: 3 additions & 0 deletions cmd/api/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,9 @@
"produces": [
"application/json"
],
"tags": [
"Users"
],
"summary": "Get Access Token",
"parameters": [
{
Expand Down
2 changes: 2 additions & 0 deletions cmd/api/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,8 @@ paths:
schema:
$ref: '#/definitions/res.Response'
summary: Get Access Token
tags:
- Users
/api/user/address/add:
post:
consumes:
Expand Down
Binary file modified cmd/api/tmp/api.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion pkg/api/handler/renew.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func NewRenewHandler(token services.RenewTokenUseCase) *RenewHandler {
// @Description Get access token using TokenString
// @Accept json
// @Produce json
// @Tag Users
// @Tags Users
// @Param Token body req.AccessToken true "Access Token Request"
// @Success 200 {object} res.Response
// @Failure 400 {object} res.Response
Expand Down

0 comments on commit c1d9f65

Please sign in to comment.