From 25dcb8f4f4f80e401d1d3154923e2dcd05664c76 Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Tue, 26 Mar 2019 11:00:18 -0700
Subject: Adding a few endpoints.

- Adding CreatePost, CreateComment, CreateCommunity
---
 ui/src/index.tsx | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

(limited to 'ui/src/index.tsx')

diff --git a/ui/src/index.tsx b/ui/src/index.tsx
index 1eb3a7d5..e68fc92a 100644
--- a/ui/src/index.tsx
+++ b/ui/src/index.tsx
@@ -6,6 +6,8 @@ import { Home } from './components/home';
 import { Login } from './components/login';
 import { CreatePost } from './components/create-post';
 import { CreateCommunity } from './components/create-community';
+import { Post } from './components/post';
+import { Community } from './components/community';
 
 import './main.css';
 
@@ -31,12 +33,8 @@ class Index extends Component<any, any> {
             <Route path={`/login`} component={Login} />
             <Route path={`/create_post`} component={CreatePost} />
             <Route path={`/create_community`} component={CreateCommunity} />
-            {/*
-            <Route path={`/search/:type_/:q/:page`} component={Search} />
-            <Route path={`/submit`} component={Submit} />
-            <Route path={`/user/:id`} component={Login} />
-            <Route path={`/community/:id`} component={Login} /> 
-            */}
+            <Route path={`/post/:id`} component={Post} />
+            <Route path={`/community/:id`} component={Community} />
           </Switch>
         </div>
       </HashRouter>
-- 
cgit v1.2.3

