|
@@ -1,8 +1,16 @@
|
|
|
// We only need to import the modules necessary for initial render
|
|
|
import Layout from '../components/Layout'
|
|
|
-import Home from './Home'
|
|
|
+import Login from './Login'
|
|
|
import NotFound from './NotFound'
|
|
|
import counterRoute from './Counter'
|
|
|
+import Home from './Home'
|
|
|
+import UserMessage from './UserMessage'
|
|
|
+import ExpertView from './Expert'
|
|
|
+import FindPatientView from './FindPatient'
|
|
|
+import MyOrderView from './MyOrder'
|
|
|
+import ChatExpertView from './ChatExpert'
|
|
|
+import ChatBaseView from './ChatBase'
|
|
|
+import SendChatLog from './SendChatLog'
|
|
|
|
|
|
/* Note: Instead of using JSX, we recommend using react-router
|
|
|
PlainRoute objects to build route definitions. */
|
|
@@ -10,9 +18,17 @@ import counterRoute from './Counter'
|
|
|
export const createRoutes = (store) => ({
|
|
|
path: '/',
|
|
|
component: Layout,
|
|
|
- indexRoute: Home,
|
|
|
+ indexRoute: Login,
|
|
|
childRoutes: [
|
|
|
counterRoute(store),
|
|
|
+ Home,
|
|
|
+ UserMessage,
|
|
|
+ ExpertView,
|
|
|
+ FindPatientView,
|
|
|
+ MyOrderView,
|
|
|
+ ChatExpertView,
|
|
|
+ ChatBaseView,
|
|
|
+ SendChatLog,
|
|
|
NotFound,
|
|
|
],
|
|
|
})
|