summaryrefslogtreecommitdiffstats
path: root/ui/src/index.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-03-26 11:00:18 -0700
committerDessalines <tyhou13@gmx.com>2019-03-26 11:00:18 -0700
commit25dcb8f4f4f80e401d1d3154923e2dcd05664c76 (patch)
tree85e9644b64e0eb3fa139db18075dbfd73f854a38 /ui/src/index.tsx
parente1cb805cfc719d6266ec50e5f1ef3ac1edf74656 (diff)
Adding a few endpoints.
- Adding CreatePost, CreateComment, CreateCommunity
Diffstat (limited to 'ui/src/index.tsx')
-rw-r--r--ui/src/index.tsx10
1 files changed, 4 insertions, 6 deletions
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>