Skip to content

Commit

Permalink
add basic not found route
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKreft committed Feb 1, 2024
1 parent 2145ec1 commit 885f896
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import "./App.css";
import { Route, Routes } from "react-router-dom";
import Home from "./components/home.tsx";
import NotFound from "./components/not-found.tsx";

function App() {
return (
<>
<div className="flex min-h-screen flex-col">
<Routes>
<Route path="/" element={<Home />} />
<Route path={"/*"} element={<NotFound />} />
</Routes>
</div>
</>
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/components/not-found.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function NotFound() {
return <div>Not Found</div>;
}

0 comments on commit 885f896

Please sign in to comment.