addRoutes (id, routes) {
    router.addRoutes([
      {
        path: `/addon/${id}`,
        component: ProjectHome,
        meta: {
          needProject: true,
          restore: true
        },
        children: routes
      }
    ])
    // eslint-disable-next-line no-console
    console.log(`[ClientAddonApi] Registered new routes under the /addon/${id} route`)
  }
Add routes to vue-router under a /addon/<id> parent route.
For example, addRoutes('foo', [ { path: '' }, { path: 'bar' } ])
will add the /addon/foo/ and the /addon/foo/bar routes to vue-router.

@param {string} id Routes pack id (generally the vue-cli plugin id)
@param {any} routes vue-router route definitions