feat: add api routes (#11)
This commit adds API routes. These routes are located in the ./pages/api/ directory. Each file in there will have it's default export invoked for HTTP calls to the corresponding route.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { renderToString } from "./deps.ts";
|
||||
import * as rt from "../runtime/deps.ts";
|
||||
import { Page } from "./page.ts";
|
||||
import { Page } from "./routes.ts";
|
||||
import { BUILD_ID, INTERNAL_PREFIX, JS_PREFIX } from "./constants.ts";
|
||||
|
||||
export function render(page: Page, params: Record<string, string>): string {
|
||||
|
||||
Reference in New Issue
Block a user