添加移动端API和组件,包含文件上传、用户认证、主题设置等功能模块,同时更新相关依赖和配置,提升代码结构和可维护性。
This commit is contained in:
@@ -439,6 +439,23 @@ export default function({ apiClient, app, moduleDir }: ModuleParams) {
|
||||
prodPath: "admin/web_app.js"
|
||||
}, GLOBAL_CONFIG.APP_NAME))
|
||||
|
||||
// 移动端路由
|
||||
honoApp.get('/mobile', createHtmlWithConfig({
|
||||
src: "https://esm.d8d.fun/xb",
|
||||
href: "/client/mobile/mobile_app.tsx",
|
||||
denoJson: "/client/mobile/deno.json",
|
||||
refresh: true,
|
||||
prodPath: "mobile/mobile_app.js"
|
||||
}, GLOBAL_CONFIG.APP_NAME))
|
||||
|
||||
honoApp.get('/mobile/*', createHtmlWithConfig({
|
||||
src: "https://esm.d8d.fun/xb",
|
||||
href: "/client/mobile/mobile_app.tsx",
|
||||
denoJson: "/client/mobile/deno.json",
|
||||
refresh: true,
|
||||
prodPath: "mobile/mobile_app.js"
|
||||
}, GLOBAL_CONFIG.APP_NAME))
|
||||
|
||||
const staticRoutes = serveStatic({
|
||||
root: moduleDir,
|
||||
onFound: async (path: string, c: HonoContext) => {
|
||||
|
||||
Reference in New Issue
Block a user