mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
修复openapi路由
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user