Code Review
/
aai
/
sparky-fe.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a404dea238607a0447e2781ff70753e34269a892
[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
}