chore: use x/rutt instead of crux.land/router (#647)

Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
Elias Sjögreen
2022-08-23 21:33:11 +00:00
committed by GitHub
co-authored by Luca Casonato
parent 7e0278bbb3
commit 6c2291f0de
3 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { ComponentType } from "preact";
import { ConnInfo, router, ServeInit } from "./deps.ts";
import { ConnInfo, rutt, ServeInit } from "./deps.ts";
import { InnerRenderFunction, RenderContext } from "./render.tsx";
// --- APPLICATION CONFIGURATION ---
@@ -78,7 +78,7 @@ export type Handler<T = any, State = Record<string, unknown>> = (
// deno-lint-ignore no-explicit-any
export type Handlers<T = any, State = Record<string, unknown>> = {
[K in typeof router.METHODS[number]]?: Handler<T, State>;
[K in typeof rutt.METHODS[number]]?: Handler<T, State>;
};
export interface RouteModule {