Initial commit

This commit is contained in:
Rifqy Zacky Ariadhy
2019-01-02 18:39:53 +07:00
commit 1a000700e6
781 changed files with 95892 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
const mapping = {
product_detail: (store) => {
console.log("mapper");
return Promise.resolve(store);
},
authentication: (store) => {
return Promise.resolve(store);
}
};
export function provideData(store, routes) {
if (routes && routes[1] && routes[1].name && mapping[routes[1].name]) {
return mapping[routes[1].name](store);
}
return Promise.resolve(store);
}