swagger-ui-express 的使用
const swaggerUI = require('swagger-ui-express')
const openapi = require('./openapi.json')
app.use('/swagger.html', swaggerUI.serve, swaggerUI.setup(openapi))
openapi.json 从官网获取
相关链接:
标签:swaggerUI,const,express,openapi,ui,swagger From: https://www.cnblogs.com/zhumenglong/p/16990541.html