{"size": 511, "ext": "js", "max_stars_repo_path": "src/routes/index.js", "max_stars_repo_name": "dongruihe/h5-mall", "max_stars_repo_stars_event_min_datetime": "2017-08-02T09:33:10.000Z", "max_stars_repo_stars_event_max_datetime": "2017-08-03T08:09:35.000Z", "max_issues_repo_path": "src/routes/index.js", "max_issues_repo_name": "dongruihe/h5-mall", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/routes/index.js", "max_forks_repo_name": "dongruihe/h5-mall", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.3333333333, "max_line_length": 45, "alphanum_fraction": 0.7025440313}
import CoreLayout from '../layouts/Main/Main'
import HomeRoute from './Home'
import CounterRoute from './Counter'
import CategoryRoute from './Category'
import DetailRoute from './Detail'
import GoodsListRoute from './GoodsList'

export const createRoutes = (store) => ({
  path        : '/',
  component   : CoreLayout,
  indexRoute  : HomeRoute(store),
  childRoutes : [
    CounterRoute(store),
    CategoryRoute(store),
    DetailRoute(store),
    GoodsListRoute(store)
  ]
});

export default createRoutes
