From 665dca80d00c3947a4838bbd468cfdcb9241ace5 Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Wed, 11 Dec 2019 21:28:33 -0800
Subject: Moving front end routes from nginx to actix

- Fixes #363
---
 ui/src/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/ui/src/index.tsx b/ui/src/index.tsx
index 2e50db88..41404f4b 100644
--- a/ui/src/index.tsx
+++ b/ui/src/index.tsx
@@ -38,11 +38,11 @@ class Index extends Component<any, any> {
           <Navbar />
           <div class="mt-4 p-0">
             <Switch>
+              <Route exact path={`/`} component={Main} />
               <Route
                 path={`/home/type/:type/sort/:sort/page/:page`}
                 component={Main}
               />
-              <Route exact path={`/`} component={Main} />
               <Route path={`/login`} component={Login} />
               <Route path={`/create_post`} component={CreatePost} />
               <Route path={`/create_community`} component={CreateCommunity} />
-- 
cgit v1.2.3

