mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修复openapi路由
This commit is contained in:
parent
e959466898
commit
02a1afb477
|
@ -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, {
|
||||
|
|
Loading…
Reference in New Issue
Block a user