code: function getDefaultRouteHandler(verb, path) {
    const paths = path.split(/\//g);
    const lastPath = paths[paths.length - 1];
    const pluralResourceName = lastPath.includes(':') ? paths[paths.length - 2] : lastPath;
    const resourceName = singularize(pluralResourceName);
    const ResourceModel = targetNamespace$1.MemServer.Models[classify(resourceName)];
  
    if (!ResourceModel) {
      throw new Error(chalk.red(`[MemServer] ${verb} ${path} route handler cannot be generated automatically: ${classify(resourceName)} is not a valid MemServer.Model, please check that your route name matches the model reference or create a custom handler function`));
    } else if (verb === 'GET') {
      if (lastPath.includes(':')) {
        return (request) => {
          return { [resourceName]: ResourceModel.serializer(ResourceModel.find(request.params.id)) };
        };
      }
  
      return () => {
        return { [pluralResourceName]: ResourceModel.serializer(ResourceModel.findAll()) };
      };
    } else if (verb === 'POST') {
      return (request) => {
        const resourceParams = request.params[resourceName];
  
        return { [resourceName]: ResourceModel.serializer(ResourceModel.insert(resourceParams)) };
      };
    } else if (verb === 'PUT') {
      return (request) => {
        const resourceParams = request.params[resourceName];
  
        return { [resourceName]: ResourceModel.serializer(ResourceModel.update(resourceParams)) };
      };
    } else if (verb === 'DELETE') {
      return (request) => { ResourceModel.delete({ id: request.params.id }); };
    }
  }
docs: END: Pretender REST default hack: For better UX