index.js 388 Bytes
import create from './create';
import edit from './edit';
import show from './show';
import onsale from './onsale';
import offsale from './offsale';
import output from './output';

let routers = [create, edit, show, onsale, offsale, output];

routers.forEach(router => {
    router.path = `/product${router.path}`;
    router.name = `product.${router.name}`;
});

export default routers;