1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-19 00:41:29 +00:00

Swapped over all urls and refs to old url scheme

This commit is contained in:
Scott Tolksdorf
2016-06-04 18:29:25 -04:00
parent 60092f404c
commit 7ca4e8ffa6
17 changed files with 144 additions and 401 deletions

View File

@@ -28,20 +28,20 @@ var Homebrew = React.createClass({
},
componentWillMount: function() {
Router = CreateRouter({
'/homebrew/edit/:id' : (args) => {
'/edit/:id' : (args) => {
return <EditPage id={args.id} brew={this.props.brew} />
},
'/homebrew/share/:id' : (args) => {
'/share/:id' : (args) => {
return <SharePage id={args.id} brew={this.props.brew} />
},
'/homebrew/changelog' : (args) => {
'/changelog' : (args) => {
return <SharePage brew={{title : 'Changelog', text : this.props.changelog}} />
},
'/homebrew/new' : (args) => {
'/new' : (args) => {
return <NewPage />
},
'/homebrew*' : <HomePage welcomeText={this.props.welcomeText} />,
'*' : <HomePage welcomeText={this.props.welcomeText} />,
});
},
render : function(){