import React from 'react'
import Main from '../components/Main.jsx'
import CreateUser from '../components/CreateUser.jsx'
import CreateSerf from '../components/CreateSerf.jsx'
import Home from '../components/Home.jsx'
import {Route, IndexRoute} from 'react-router'

const routes = () =>
		<Route path="/" component={Main}>
			<Route path="users/new" component={CreateUser} />
			<Route path="serfs/new" component={CreateSerf} />
			<IndexRoute component={Home} />
		</Route>


export default routes()
import React from 'react'
import Main from '../components/Main.jsx'
import CreateUser from '../components/user/CreateUser.jsx'
import Home from '../components/home/Home.jsx'
import Login from '../components/user/Login.jsx'
import {Route, IndexRoute} from 'react-router'

const CreateUserWrapper = () => <CreateUser myType={"users"} />
const CreateSerfWrapper = () => <CreateUser myType={"serfs"} />


const routes = () =>
		<Route path="/" component={Main}>
			<Route path="users/new" component={CreateUserWrapper} />
			<Route path="serfs/new" component={CreateSerfWrapper} />
			<Route path="sessions/new" component={Login} />
			<IndexRoute component={Home} />
		</Route>


export default routes()
Add new route for sessions
Add new route for sessions
