删除了跨域,并删除一些无用库引用
This commit is contained in:
1 parent
22a95e020f
commit
33172b0968
4 files changed
+6
-6
No files matched your search
@@ -32,3 +32,5 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
|
|||||||
|
|
||||||
# Finder (MacOS) folder config
|
# Finder (MacOS) folder config
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
build/
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
FROM debian
|
||||||
|
COPY ./release /app
|
||||||
|
EXPOSE 8080
|
||||||
|
CMD ["/app"]
|
||||||
@@ -4,13 +4,11 @@ import { validator } from "hono/validator";
|
|||||||
import { postUser } from "./service/postUser";
|
import { postUser } from "./service/postUser";
|
||||||
import { isEmpty } from "./utils/is_empty";
|
import { isEmpty } from "./utils/is_empty";
|
||||||
import { getUser } from "./service/getUser";
|
import { getUser } from "./service/getUser";
|
||||||
import { cors } from "hono/cors";
|
|
||||||
import { bodyLimit } from "hono/body-limit";
|
import { bodyLimit } from "hono/body-limit";
|
||||||
import { getRandom } from "./service/getRandom";
|
import { getRandom } from "./service/getRandom";
|
||||||
|
|
||||||
const tmpApp: Hono = new Hono()
|
const tmpApp: Hono = new Hono()
|
||||||
export const app = tmpApp.basePath("/test/")
|
export const app = tmpApp.basePath("/test/")
|
||||||
app.use("/test/*", cors())
|
|
||||||
|
|
||||||
// routers
|
// routers
|
||||||
app.get("/user", (c) => {
|
app.get("/user", (c) => {
|
||||||
|
|||||||
@@ -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 {
|
enum Type {
|
||||||
lcLetter = "lcLetter",
|
lcLetter = "lcLetter",
|
||||||
ucLetter = "ucLetter",
|
ucLetter = "ucLetter",
|
||||||
|
|||||||
Reference in new issue
Block a user