We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Using cowboy, withou cowboy-swagger I used to pass an Option to cowboy handlers. Like this:
Opts = get_handler_options(HttpConfig), Dispatch = cowboy_router:compile([ {'_', [ {"/nodes/[:type]", location, Opts}, ....
How to achieve the same using trails ?
Thanks.
The text was updated successfully, but these errors were encountered:
@joaohf you have to add those options to each trail, like this:
… Opts = get_handler_options(HttpConfig), Trails = [trails:trail("/nodes/[:type]", location, Opts)], Dispatch = trails:single_host_compile(Trails), …
Sorry, something went wrong.
No branches or pull requests
Hi,
Using cowboy, withou cowboy-swagger I used to pass an Option to cowboy handlers. Like this:
How to achieve the same using trails ?
Thanks.
The text was updated successfully, but these errors were encountered: