refactor: changed Handlers type to MultiHandler (#1360)

This commit is contained in:
Aushwin
2023-06-28 12:52:48 +00:00
committed by GitHub
parent a30c6bdf5c
commit 851f8d60aa
26 changed files with 64 additions and 58 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
import { Handlers } from "../../../server.ts";
import { MultiHandler } from "../../../server.ts";
interface State {
root: string;
}
export const handler: Handlers<undefined, State> = {
export const handler: MultiHandler<undefined, State> = {
GET(_req: Request, { state }) {
return new Response(JSON.stringify(state));
},