Created
October 23, 2014 16:39
-
-
Save adambeynon/daebc3267d218674dc44 to your computer and use it in GitHub Desktop.
react to fire
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Router.map do | |
route :index do | |
index :inbox_stats | |
route 'message/:id' | |
end | |
route :calendar | |
index :dashboard | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var routes = ( | |
<Routes location="history"> | |
<Route handler={App}> | |
<Route name="inbox" handler={Inbox}> | |
<Route name="message" path=":messageId" handler={Message}/> | |
<DefaultRoute handler={InboxStats}/> | |
</Route> | |
<Route name="calendar" handler={Calendar}/> | |
<DefaultRoute handler={Dashboard}/> | |
</Route> | |
</Routes> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment