Integrate PouchORM package into Gallery project

This commit is contained in:
Timothy Farrell 2018-04-21 14:50:14 -05:00
parent 463df71e77
commit 32bff48f51

View File

@ -11,11 +11,13 @@ const digestRoutes = (routes, baseUrl) =>
return '(' + regExStr.substring(1, regExStr.lastIndexOf('/')) + ')';
});
return {
return Object.assign(
{
matcher: new RegExp(`^${baseUrl}${reg}$`),
_i: i,
...route
};
_i: i
},
route
);
});
export function Router(routes, baseUrl = '#') {