mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-10 14:44:28 +02:00
initial app router and some views
This commit is contained in:
parent
13a4ad0d26
commit
e9476696f4
6 changed files with 163 additions and 73 deletions
19
src/js/constants/Routes.js
Normal file
19
src/js/constants/Routes.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
var assign = require('object-assign');
|
||||
var keyMirror = require('../util/keyMirror');
|
||||
|
||||
module.exports = keyMirror({
|
||||
NUX: null,
|
||||
LOADING: null,
|
||||
SEQUENCE_SELECT: null,
|
||||
LEVEL_SELECT: null,
|
||||
});
|
||||
|
||||
module.exports.getRouteWithParams = function(id, params) {
|
||||
return assign({id: id}, params);
|
||||
};
|
||||
|
||||
module.exports.getRouteForID = function(id) {
|
||||
return {
|
||||
id: id,
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue