完成deno后端测试用的接口
This commit is contained in:
9
back-end/utils.ts
Normal file
9
back-end/utils.ts
Normal 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>();
|
||||
Reference in New Issue
Block a user