修复openapi路由

This commit is contained in:
whyour 2021-11-04 18:07:34 +08:00
parent e959466898
commit 02a1afb477

View File

@ -18,7 +18,7 @@ export default ({ app }: { app: Application }) => {
app.use(cors());
app.use((req, res, next) => {
if (req.path.startsWith('/api')) {
if (req.path.startsWith('/api') || req.path.startsWith('/open')) {
next();
} else {
return handler(req, res, {