motiv-labs / janus

An API Gateway written in Go
https://hellofresh.gitbooks.io/janus
MIT License
2.77k stars 319 forks source link

Question about params #456

Closed nonils closed 3 years ago

nonils commented 3 years ago

Hi there. I have a question about if in janus we have a way to know or infer a request param. For example. If you have a uri like /example/{id} -> gets the id to do a custom action. Thanks

vgarvardt commented 3 years ago

If I got your question then you're talking probably about Named url parameters described at https://github.com/hellofresh/janus/blob/master/docs/proxy/routing_capabilities.md

nonils commented 3 years ago

Yes thanks. And just in case I want know what is the handlers that you use to handle the request if I can know

thanks in advance

vgarvardt commented 3 years ago

If you're talking about router - internally github.com/go-chi/chi v3 is used currently - https://github.com/hellofresh/janus/blob/master/go.mod#L19

nonils commented 3 years ago

Thanks 👍