Skip to content

Commit

Permalink
example: add swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
couriourc committed Sep 8, 2024
1 parent 35591c2 commit 9b0096e
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 0 deletions.
5 changes: 5 additions & 0 deletions example/plugins/swagger/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {swagger} from '@elysiajs/swagger';

export default function ({app}) {
app.use(swagger);
}
15 changes: 15 additions & 0 deletions example/plugins/swagger/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "swagger",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@elysiajs/swagger": "^1.1.1"
}
}
74 changes: 74 additions & 0 deletions example/plugins/swagger/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9b0096e

Please sign in to comment.