Skip to content

Commit

Permalink
Fix up this referral route
Browse files Browse the repository at this point in the history
  • Loading branch information
elffjs committed Sep 17, 2024
1 parent 8bc70ff commit 498c542
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ const docTemplate = `{
}
}
},
"/v1/accounts/submit-referral-code": {
"/v1/accounts/referral/submit": {
"post": {
"summary": "Takes the referral code, validates and stores it",
"parameters": [
Expand Down
2 changes: 1 addition & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
}
}
},
"/v1/accounts/submit-referral-code": {
"/v1/accounts/referral/submit": {
"post": {
"summary": "Takes the referral code, validates and stores it",
"parameters": [
Expand Down
2 changes: 1 addition & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ paths:
$ref: '#/definitions/internal_controller.ErrorRes'
summary: Link a wallet to existing email account; require a signed JWT from
auth server
/v1/accounts/submit-referral-code:
/v1/accounts/referral/submit:
post:
parameters:
- description: ReferralCode is the 6-digit, alphanumeric referral code from
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/referral_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (d *Controller) GenerateReferralCode(ctx context.Context) (string, error) {
// @Success 200 {object} controller.SubmitReferralCodeResponse
// @Failure 400 {object} controller.ErrorRes
// @Failure 500 {object} controller.ErrorRes
// @Router /v1/accounts/submit-referral-code [post]
// @Router /v1/accounts/referral/submit [post]
func (d *Controller) SubmitReferralCode(c *fiber.Ctx) error {
userAccount, err := getUserAccountClaims(c)
if err != nil {
Expand Down

0 comments on commit 498c542

Please sign in to comment.