UNPKG

react-hackathon-board

Version:
52 lines (49 loc) 2.81 kB
import React from 'react'; import { Route } from 'react-router'; // NOTE: here we're making use of the `resolve.root` configuration // option in webpack, which allows us to specify import paths as if // they were from the root of the ~/src directory. This makes it // very easy to navigate to files regardless of how deeply nested // your current file is. import CoreLayout from 'layouts/CoreLayout/CoreLayout'; import LoginView from 'views/LoginView/LoginView'; import SignupView from 'views/LoginView/SignupView'; import ProfileView from 'views/ProfileView/ProfileView'; import HackathonsView from 'views/HackathonsView/HackathonsView'; import HackathonView from 'views/HackathonsView/HackathonView'; import EditHackathonView from 'views/HackathonsView/EditHackathonView'; import HacksView from 'views/HacksView/HacksView'; import MyHacksView from 'views/HacksView/MyHacksView'; import NominatedView from 'views/HacksView/NominatedView'; import HackView from 'views/HacksView/HackView'; import EditHackView from 'views/HacksView/EditHackView'; import UsersView from 'views/UsersView/UsersView'; import UserView from 'views/UsersView/UserView'; import RulesView from 'views/HackathonsView/RulesView'; import PrizesView from 'views/HackathonsView/PrizesView'; import BeautifierView from 'views/BeautifierView/BeautifierView'; export default (store) => ( <Route component={CoreLayout}> <Route name='login' path='/login' component={LoginView} /> <Route name='signup' path='/signup' component={SignupView} /> <Route name='profile' path='/profile' component={ProfileView} /> <Route name='home' path='/' component={HacksView} /> <Route name='hackathons' path='/hackathons' component={HackathonsView} /> <Route name='editHackathon' path='/hackathons/edit/:id' component={EditHackathonView} /> <Route name='hackathon' path='/hackathons/:id' component={HackathonView} /> <Route name='createHackathon' path='/hackathons/create/new/' component={EditHackathonView} /> <Route name='hacks' path='/hacks' component={HacksView} /> <Route name='myHacks' path='/hacks/my' component={MyHacksView} /> <Route name='judging' path='/judging' component={NominatedView} /> <Route name='hack' path="/hacks"> <Route path=":id" component={HackView}/> </Route> <Route name='editHack' path='/hacks/edit/:id' component={EditHackView} /> <Route name='createHack' path='/hacks/create/new/' component={EditHackView} /> <Route name='people' path='/people' component={UsersView} /> <Route name='otherUser' path='/people/:id' component={UserView} /> <Route name='rules' path='/rules' component={RulesView} /> <Route name='prizes' path='/prizes' component={PrizesView} /> <Route name='beautifier' path='/beautifier' component={BeautifierView} /> </Route> );