refactor: changed Handlers type to MultiHandler (#1360)
This commit is contained in:
@@ -33,7 +33,7 @@ export async function handler(
|
||||
|
||||
```ts
|
||||
// routes/myHandler.ts
|
||||
export const handler: Handlers<any, { data: string }> = {
|
||||
export const handler: MultiHandler<any, { data: string }> = {
|
||||
GET(_req, ctx) {
|
||||
return new Response(`middleware data is ${ctx.state.data}`);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user