Compare commits

..
2 Commits
Author SHA1 Message Date
cancerai 33172b0968 删除了跨域,并删除一些无用库引用 2026-09-29 19:38:37 +08:00
cancerai 22a95e020f patch: README文件的编译和清理说明 2026-09-26 02:10:31 +08:00
5 changed files with 21 additions and 6 deletions

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"]
+15
View File
@@ -14,3 +14,18 @@ To run:
```bash
bun run dev
```
To build:
``` bash
# MacOS
bun run build-macos
# Linux(x86)
bun run build-linux-x86
# Linux(arm64)
bun run build-linux-arm64
```
To clean:
```bash
bun run clean
```
-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",