Code Review
/
aai
/
sparky-fe.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Initial coomit for AAI-UI(sparky-fe)
[aai/sparky-fe.git]
/
src
/
utils
/
Routes.js
1
2
export function changeUrlAddress(pathObj, historyObj) {
3
let toGo = '/' +
4
pathObj.route +
5
'/' +
6
pathObj.hashId;
7
historyObj.push(toGo, {lastRoute: pathObj.route});
8
}
9
10
export function buildRouteObj(routePath, routeHash) {
11
return {
12
route: routePath,
13
hashId: routeHash
14
};
15
}