aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/src/App.tsx
blob: 02db0caab8f96ef5e451f770e40401b8711b427c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { Redirect, Route, Switch } from "wouter";
import { Layout } from "./components";
import { NotFound, ReadArticles, Settings, UnreadArticles } from "./pages";

function App() {
	return (
		<Layout>
			<Switch>
				<Route path="/" component={() => <Redirect to="/unread" />} />
				<Route path="/unread" component={UnreadArticles} />
				<Route path="/read" component={ReadArticles} />
				<Route path="/settings" component={Settings} />
				<Route component={NotFound} />
			</Switch>
		</Layout>
	);
}

export default App;