feat(阶段1): Hono 应用与题目列表接口,读通本地真实数据
This commit is contained in:
1 parent
0a8fcef3f2
commit
3c975e85ee
2 files changed
+38
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { Hono } from "hono"
|
||||
|
||||
import { problemRoutes } from "./routes/problem"
|
||||
|
||||
const app = new Hono()
|
||||
|
||||
app.get("/health", (c) => c.json({ ok: true }))
|
||||
app.route("/api", problemRoutes)
|
||||
|
||||
export default {
|
||||
port: 3000,
|
||||
fetch: app.fetch,
|
||||
}
|
||||
Reference in new issue
Block a user