This commit is contained in:
2026-04-18 13:05:29 +08:00
parent 09d4c0c31b
commit 5032701c38
77 changed files with 8538 additions and 2413 deletions

View File

@@ -146,6 +146,12 @@ export function createApp(context: AppContext) {
withRouteMeta({ routeVersion: '2026-04-08' }),
createRuntimeRoutes(context),
);
app.use(
express.static(context.config.publicDir, {
fallthrough: true,
index: false,
}),
);
app.use((request, _response, next) => {
next(notFound(`接口不存在:${request.method} ${request.originalUrl}`));