Skip to content

Commit

Permalink
feat: update body limit
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmaialva33 committed Nov 7, 2022
1 parent e6a9a07 commit 21da7ab
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
24 changes: 22 additions & 2 deletions iecare-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,26 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/UnprocessableEntity'
/:
get:
tags:
- Public
summary: Public
description: 'Public route'
operationId: Public
responses:
'200':
description: successful operation
/database:
get:
tags:
- Public
summary: Database
description: 'Database route'
operationId: Database
responses:
'200':
description: successful operation

# users routes
/users:
Expand Down Expand Up @@ -1175,7 +1195,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Files'

tags:
- name: Auth
description: Operations about auth
Expand All @@ -1191,7 +1210,8 @@ tags:
description: Operations about service
- name: File
description: Operations about file

- name: Public
description: Operations about public service
components:
securitySchemes:
bearerToken:
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func main() {
EnableTrustedProxyCheck: true,
TrustedProxies: []string{"0.0.0.0"},
ProxyHeader: fiber.HeaderXForwardedFor,
BodyLimit: 10 * 1024 * 1024, // 10 MB
BodyLimit: -1,
})

app.Use(cors.New(cors.Config{
Expand Down

0 comments on commit 21da7ab

Please sign in to comment.