feat: _app (#87)

Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
Leo Kettmeir
2022-02-18 19:30:24 +01:00
committed by GitHub
co-authored by Luca Casonato
parent 2ec980ca45
commit 04a32f3498
8 changed files with 67 additions and 5 deletions
+10 -2
View File
@@ -1,12 +1,20 @@
import { ServerContext } from "./context.ts";
import { listenAndServe } from "./deps.ts";
import { MiddlewareModule, PageModule, RendererModule } from "./types.ts";
import {
AppModule,
MiddlewareModule,
PageModule,
RendererModule,
} from "./types.ts";
export type { Handler, HandlerContext, Handlers } from "./types.ts";
export { RenderContext } from "./render.tsx";
export type { RenderFn } from "./render.tsx";
export interface Routes {
pages: Record<string, PageModule | RendererModule | MiddlewareModule>;
pages: Record<
string,
PageModule | RendererModule | MiddlewareModule | AppModule
>;
baseUrl: string;
}