ft_transcendence/frontend/src/routing/special_routes.ts
Maieul BOYER 08c910c193 feat(frontend): added frontend
- 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
2025-11-11 00:20:26 +01:00

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>
`
}