Skip to content

Commit eb790a2

Browse files
committed
🔧 fix: relative path endpoint
1 parent 761b5d4 commit eb790a2

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.3.1
2+
Bug fix:
3+
- Using relative path for specPath
4+
15
# 1.3.0-exp.1 - 1 May 2025
26
Improvement:
37
- use static response for documentation page

example/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const app = new Elysia({ prefix: '/api' })
5252
}
5353
)
5454
.post('/json', ({ body }) => body, {
55-
parse: 'formdata',
55+
parse: ['json', 'formdata'],
5656
body: 'schema',
5757
response: 'schema'
5858
})

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elysiajs/swagger",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "Plugin for Elysia to auto-generate Swagger page",
55
"author": {
66
"name": "saltyAom",
@@ -73,4 +73,4 @@
7373
"openapi-types": "^12.1.3",
7474
"pathe": "^1.1.2"
7575
}
76-
}
76+
}

0 commit comments

Comments
 (0)