dispatch/client/src/js/routes.js

20 lines
658 B
JavaScript
Raw Normal View History

2015-12-28 23:34:32 +00:00
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import Connect from './containers/Connect';
import Chat from './containers/Chat';
2016-01-11 20:04:57 +00:00
import Settings from './containers/Settings';
2015-12-28 23:34:32 +00:00
export default function createRoutes() {
return (
<Route path="/" component={App}>
<Route path="connect" component={Connect} />
<Route path="settings" component={Settings} />
<Route path="/:server" component={Chat} />
<Route path="/:server/:channel" component={Chat} />
<Route path="/:server/pm/:user" component={Chat} />
2016-01-11 20:04:57 +00:00
<IndexRoute component={null} />
2015-12-28 23:34:32 +00:00
</Route>
);
}