优化降低所需配置简化部署

This commit is contained in:
eoao
2026-01-19 19:22:00 +08:00
parent ec3bd76666
commit d3235bdd17
7 changed files with 273 additions and 61 deletions

View File

@@ -1,6 +1,11 @@
import app from '../hono/hono';
import initService from '../init/init';
import { dbInit } from '../init/init';
import { initForward } from "../init/forward";
app.get('/init/:secret', (c) => {
return initService.init(c);
return dbInit.init(c);
})
app.post('/initForward', async (c) => {
return initForward(c, await c.req.json());
})