mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
Read all quest data in the folder
This commit is contained in:
1 parent
87f5e86108
commit
b2173d180d
6 files changed
+69
-1
No files matched your search
@@ -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!')
|
||||
|
||||
Reference in new issue
Block a user