删除了跨域,并删除一些无用库引用
This commit is contained in:
1 parent
22a95e020f
commit
33172b0968
4 files changed
+6
-6
No files matched your search
@@ -4,13 +4,11 @@ import { validator } from "hono/validator";
|
||||
import { postUser } from "./service/postUser";
|
||||
import { isEmpty } from "./utils/is_empty";
|
||||
import { getUser } from "./service/getUser";
|
||||
import { cors } from "hono/cors";
|
||||
import { bodyLimit } from "hono/body-limit";
|
||||
import { getRandom } from "./service/getRandom";
|
||||
|
||||
const tmpApp: Hono = new Hono()
|
||||
export const app = tmpApp.basePath("/test/")
|
||||
app.use("/test/*", cors())
|
||||
|
||||
// routers
|
||||
app.get("/user", (c) => {
|
||||
|
||||
Reference in new issue
Block a user