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
I am trying to match the incoming request path against the swagger definition.
The text was updated successfully, but these errors were encountered:
openapi: 3.0.0 paths: "/users/{id}": {operations} "/users/{id}/profile": {operations}
You can iterate the paths, and make a route for each path. The pseudocode would be like
paths
local router, err = Router.new({ { paths = { "/users/{id}" }, handler = $operations }, { paths = { "/users/{id}/profile" }, handler = $operations }, }) if not router then error("failed to create router: " .. err) end local operations = router:match(request_path) if operations then -- request_path can be matched -- execute method evaluation if necessary end
Sorry, something went wrong.
No branches or pull requests
I am trying to match the incoming request path against the swagger definition.
The text was updated successfully, but these errors were encountered: