setup frontend #5

Merged
GW_MC merged 6 commits from feature/frontend-setup into master 2025-12-02 20:50:08 +08:00
2 changed files with 9 additions and 2 deletions
Showing only changes of commit 06cabb0e18 - Show all commits

View File

@@ -1,3 +1,7 @@
import { type RouteConfig, index } from "@react-router/dev/routes";
import { type RouteConfig, index, route } from '@react-router/dev/routes';
export default [index("routes/home.tsx")] satisfies RouteConfig;
export default [
index('routes/home.tsx'),
// catch-all 404 route
route('*', 'routes/404.tsx'),
] satisfies RouteConfig;

View File

@@ -0,0 +1,3 @@
export default function NotFound() {
return <h1>404 - Not Found</h1>;
}