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
In RequestHandler.swift, the code that sets the params property of the Request object is commented out.
The text was updated successfully, but these errors were encountered:
I'll check it out, how are you formatting your request / endpoint?
Sorry, something went wrong.
let app = Flame() app.use("/api", AppRouter.getRouter()) enum AppRouter { public static func getRouter() -> Router { let router = Router() router.post("/documents/:id") { req, res in print(req.params) res.send(json: ["No": "Params"]) } return router } }
Request is just a post to that route with a random id. No matter what the id is, req.params is empty.
req.params
No branches or pull requests
In RequestHandler.swift, the code that sets the params property of the Request object is commented out.
The text was updated successfully, but these errors were encountered: