完成deno后端测试用的接口

This commit is contained in:
编码猿
2025-09-16 23:40:58 +08:00
parent c156637f03
commit 61c84b0842
12 changed files with 1576 additions and 9 deletions

9
back-end/utils.ts Normal file
View File

@@ -0,0 +1,9 @@
import { createDefine } from "fresh";
// This specifies the type of "ctx.state" which is used to share
// data among middlewares, layouts and routes.
export interface State {
shared: string;
}
export const define = createDefine<State>();