mulesoft/osprey-cli

Routing weirdness

Closed this issue · 0 comments

I have this RAML:

    /pages:
      type: collection
      /{pageId}:

with this setup:

apiKit.register('/api', app, {
  ramlFile: path.join(__dirname, '/assets/raml/api.raml'),
  enableConsole: true,
  enableMocks: true
});

I expect a GET /localhost:3000/pages/api to 404, but it returns the sample for /pages/api