feat: add cors to fiber app

This commit is contained in:
2025-09-15 20:14:00 +03:30
parent c27e3945d5
commit e3d37a8e4d
5 changed files with 15 additions and 150 deletions
+2 -54
View File
@@ -119,59 +119,7 @@ const docTemplate = `{
}
}
},
"/auth/send-otp": {
"post": {
"description": "Send OTP code to the provided phone number",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Send OTP code",
"parameters": [
{
"description": "OTP Request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OTPProviderReq"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/dto.OTPProviderResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/auth/verify-kyc": {
"/auth/kyc": {
"post": {
"description": "Verify user KYC with national ID and birth date",
"consumes": [
@@ -223,7 +171,7 @@ const docTemplate = `{
}
}
},
"/auth/verify-otp": {
"/auth/otp": {
"post": {
"description": "Verify the provided OTP code for the phone number",
"consumes": [
+2 -54
View File
@@ -108,59 +108,7 @@
}
}
},
"/auth/send-otp": {
"post": {
"description": "Send OTP code to the provided phone number",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Send OTP code",
"parameters": [
{
"description": "OTP Request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OTPProviderReq"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/dto.OTPProviderResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/auth/verify-kyc": {
"/auth/kyc": {
"post": {
"description": "Verify user KYC with national ID and birth date",
"consumes": [
@@ -212,7 +160,7 @@
}
}
},
"/auth/verify-otp": {
"/auth/otp": {
"post": {
"description": "Verify the provided OTP code for the phone number",
"consumes": [
+2 -36
View File
@@ -148,41 +148,7 @@ paths:
summary: Generate authentication challenge
tags:
- auth
/auth/send-otp:
post:
consumes:
- application/json
description: Send OTP code to the provided phone number
parameters:
- description: OTP Request
in: body
name: request
required: true
schema:
$ref: '#/definitions/dto.OTPProviderReq'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/dto.OTPProviderResponse'
"400":
description: Bad Request
schema:
additionalProperties:
type: string
type: object
"500":
description: Internal Server Error
schema:
additionalProperties:
type: string
type: object
summary: Send OTP code
tags:
- auth
/auth/verify-kyc:
/auth/kyc:
post:
consumes:
- application/json
@@ -216,7 +182,7 @@ paths:
summary: Verify user KYC
tags:
- auth
/auth/verify-otp:
/auth/otp:
post:
consumes:
- application/json