- Router: client side route handling with client side rendering - Toast: rought Toast handling for better UX and messaging - Auth: single point of truth for the Logged in user This commit doesnt not include the openapi generated code
12 lines
373 B
TypeScript
12 lines
373 B
TypeScript
import { escapeHTML } from "@app/utils";
|
|
import { getRoute, type RouteHandlerParams } from "@app/routing";
|
|
|
|
export async function route_404(url: string, _args: RouteHandlerParams): Promise<string> {
|
|
console.log(`asked about route '${url}: not found'`)
|
|
console.log(getRoute())
|
|
return `
|
|
<div> 404 - Not Found </div>
|
|
<hr />
|
|
<center> ${escapeHTML(url)} </center>
|
|
`
|
|
}
|