From b1d68ac307ed87d63e83820cbdf843fff0fd9f7f Mon Sep 17 00:00:00 2001
From: polwex <polwex@sortug.com>
Date: Thu, 11 Sep 2025 01:48:14 +0700
Subject: init

---
 front/src/Router.tsx | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 front/src/Router.tsx

(limited to 'front/src/Router.tsx')

diff --git a/front/src/Router.tsx b/front/src/Router.tsx
new file mode 100644
index 0000000..b7b033e
--- /dev/null
+++ b/front/src/Router.tsx
@@ -0,0 +1,29 @@
+import Sidebar from "@/components/layout/Sidebar";
+
+// new
+import Feed from "@/pages/Feed";
+import Settings from "@/pages/Settings";
+import { Switch, Router, Redirect, Route } from "wouter";
+
+export default function r() {
+  return (
+    <Switch>
+      <Router base="/apps/nostril">
+        <Sidebar />
+        <main>
+          <Route path="/" component={toGlobal} />
+          <Route path="/sets" component={Settings} />
+          <Route path="/feed/:taip" component={Feed} />
+        </main>
+      </Router>
+      <Route component={P404} />
+    </Switch>
+  );
+}
+function toGlobal() {
+  return <Redirect to="/feed/nostr" />;
+}
+
+export function P404() {
+  return <h1 className="x-center">404</h1>;
+}
-- 
cgit v1.2.3

