update @koa/cors

This commit is contained in:
lik
2026-05-25 12:12:54 +08:00
parent 2c6efee887
commit 2245960ccf
3 changed files with 15 additions and 9 deletions

2
app.js
View File

@@ -1,6 +1,6 @@
import Koa from 'koa';
import bodyParser from 'koa-bodyparser';
import cors from 'koa-cors';
import cors from '@koa/cors';
import http from 'http';
import { DBModel } from './models/index.js';
import registerRoutes from './routes/index.js';