UNPKG

epilogue

Version:

Create REST resources and controllers with Sequelize and Express or Restify

12 lines (9 loc) 282 B
'use strict'; var Endpoint = function(endpoint) { this.string = endpoint; this.attributes = endpoint .split('/') .filter(function(c) { return ~c.indexOf(':') && ~~c.indexOf(':unused'); }) .map(function(c) { return c.substring(1); }); }; module.exports = Endpoint;