Open Shobhit28 opened 7 years ago
I have 2 urls like :
I have 2 separate routes for them like:
{ prefix: '/test', pin: 'role:test,cmd:*', map:{ run: {GET: true} } }
{ pin: 'role:test,cmd:*', map:{ test: {GET: true, suffix: '/:test_id'} } }
However when I access /test/run. The second pattern gets triggered with run as a URL parameter.
Is this the expected behaviour or is there some other way to do this ?
@Shobhit28 This should probably go in https://github.com/senecajs/seneca-web /cc @tswaters
I have 2 urls like :
I have 2 separate routes for them like:
{ prefix: '/test', pin: 'role:test,cmd:*', map:{ run: {GET: true} } }
{ pin: 'role:test,cmd:*', map:{ test: {GET: true, suffix: '/:test_id'} } }
However when I access /test/run. The second pattern gets triggered with run as a URL parameter.
Is this the expected behaviour or is there some other way to do this ?