mirror of
https://github.com/zoriya/elysia-swagger.git
synced 2025-12-06 00:36:10 +00:00
🎉 feat: 1.0
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
"release": "npm run build && npm run test && npm publish --access public"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"elysia": ">= 1.0.0-beta.5"
|
||||
"elysia": ">= 1.0.0-beta.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@apidevtools/swagger-parser": "^10.1.0",
|
||||
@@ -43,7 +43,7 @@
|
||||
"@types/bun": "^1.0.4",
|
||||
"@types/lodash.clonedeep": "^4.5.7",
|
||||
"@types/node": "^20.1.4",
|
||||
"elysia": "1.0.0-beta.5",
|
||||
"elysia": "1.0.0-beta.9",
|
||||
"eslint": "^8.40.0",
|
||||
"rimraf": "4.3",
|
||||
"typescript": "^5.0.4"
|
||||
|
||||
@@ -64,7 +64,7 @@ export const swagger =
|
||||
|
||||
app.get(
|
||||
path,
|
||||
(() => {
|
||||
() => {
|
||||
const combinedSwaggerOptions = {
|
||||
url: `${relativePath}/json`,
|
||||
dom_id: '#swagger-ui',
|
||||
@@ -108,11 +108,11 @@ export const swagger =
|
||||
}
|
||||
}
|
||||
)
|
||||
})()
|
||||
}
|
||||
).get(
|
||||
`${path}/json`,
|
||||
() => {
|
||||
const routes = app.router.history as InternalRoute[]
|
||||
const routes = app.routes as InternalRoute[]
|
||||
|
||||
if (routes.length !== totalRoutes) {
|
||||
totalRoutes = routes.length
|
||||
|
||||
Reference in New Issue
Block a user