module.exports = {
  routes: [
    {
      method: 'GET',
      path: '/{{id}}',
      handler: '{{id}}.find',
      config: {
        policies: [],
      },
    },
    {
      method: 'PUT',
      path: '/{{id}}',
      handler: '{{id}}.update',
      config: {
        policies: [],
      },
    },
    {
      method: 'DELETE',
      path: '/{{id}}/',
      handler: '{{id}}.delete',
      config: {
        policies: [],
      },
    },
  ],
};

module.exports = {
  routes: [
    {
      method: 'GET',
      path: '/{{id}}',
      handler: '{{id}}.find',
      config: {
        policies: [],
      },
    },
    {
      method: 'PUT',
      path: '/{{id}}',
      handler: '{{id}}.update',
      config: {
        policies: [],
      },
    },
    {
      method: 'DELETE',
      path: '/{{id}}',
      handler: '{{id}}.delete',
      config: {
        policies: [],
      },
    },
  ],
};

Fix generator wrong single-type url
Fix generator wrong single-type url
