This repository was archived by the owner on May 10, 2021. It is now read-only.
This repository was archived by the owner on May 10, 2021. It is now read-only.
API route not passing query string #9
Closed
Description
API route is not passing query string.
Repo:
https://github.com/wei/next-on-netlify-demo-wei
Example:
https://relaxed-mirzakhani-568b34.netlify.app/api/debug/12345?testqs=1
// api/debug/[id].js
export default async ( req, res ) => {
res.json({ query: req.query });
res.end();
};
Expected output
// npm run dev
{
"query": {
"testqs": "1",
"id": "12345"
}
}
Actual output
// npm run netlfy:dev
{
"query": {
"id": "12345"
}
}
Metadata
Metadata
Assignees
Labels
No labels