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

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

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

export default routers;