📜  招摇导入 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:17.878000             🧑  作者: Mango

代码示例1
const express = require('express');
const app = express();
const swaggerUi = require('swagger-ui-express');
const swaggerDocument = require('./swagger.json');

app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument));