UNPKG

swagger-routes-express

Version:

Connect Express route controllers to restful paths using a Swagger 2 or OpenAPI 3 definition file

4 lines (2 loc) 106 B
const normalisePath = path => path.replace(/\{/g, ':').replace(/\}/g, '') module.exports = normalisePath