mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-24 15:43:24 +08:00
修复openapi路由
This commit is contained in:
parent
7b512a1681
commit
d6ed394557
|
@ -18,7 +18,7 @@ export default ({ app }: { app: Application }) => {
|
||||||
app.use(cors());
|
app.use(cors());
|
||||||
|
|
||||||
app.use((req, res, next) => {
|
app.use((req, res, next) => {
|
||||||
if (req.path.startsWith('/api')) {
|
if (req.path.startsWith('/api') || req.path.startsWith('/open')) {
|
||||||
next();
|
next();
|
||||||
} else {
|
} else {
|
||||||
return handler(req, res, {
|
return handler(req, res, {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user