Read all quest data in the folder

This commit is contained in:
wancat committed 2023-07-19 20:01:14 +08:00
1 parent 87f5e86108
commit b2173d180d
6 files changed
+69 -1

No files matched your search

+1
View File
@@ -18,6 +18,7 @@ async function main() {
const file = await fs.readFile('./swagger.yaml', 'utf8')
const swaggerDocument = YAML.parse(file)
app.use('/api-docs', swaggerUI.serve, swaggerUI.setup(swaggerDocument))
app.use(express.json())
app.get('/', (req, res) => {
res.send('Hello World!')