删除了跨域,并删除一些无用库引用

This commit is contained in:
cancerai committed 2026-09-29 19:38:37 +08:00
1 parent 22a95e020f
commit 79cf303eff
4 files changed
+6 -6

No files matched your search

+2
View File
@@ -32,3 +32,5 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
# Finder (MacOS) folder config
.DS_Store
build/
+4
View File
@@ -0,0 +1,4 @@
FROM debian
COPY ./release /app
EXPOSE 8080
CMD ["/app"]
-2
View File
@@ -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) => {
-4
View File
@@ -1,7 +1,3 @@
import type { Context, ContextVariableMap } from "hono"
import { updateExpressionWithTypeArguments } from "typescript/unstable/ast/factory"
import { ApiResponse } from "../modules/api_response"
enum Type {
lcLetter = "lcLetter",
ucLetter = "ucLetter",