For example I have routes:
I would like /foo/bar to respond to the first request to that url with {"data": 1} and the second request with {"data": 2}
I would like /baz/bax to respond to the first request to that url with {"data2": 3} and the second request with {"data2": 4}
I could not find a way to achieve this in the docs and am currently doing it via .AppendHandlers and putting all routes in there with verifies
For example I have routes:
I would like
/foo/barto respond to the first request to that url with{"data": 1}and the second request with{"data": 2}I would like
/baz/baxto respond to the first request to that url with{"data2": 3}and the second request with{"data2": 4}I could not find a way to achieve this in the docs and am currently doing it via
.AppendHandlersand putting all routes in there with verifies