mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
d7e83704bf
Closes: #37805 ## Bug - [x] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
13 lines
185 B
JavaScript
13 lines
185 B
JavaScript
export const config = {
|
|
api: {
|
|
bodyParser: false,
|
|
},
|
|
}
|
|
|
|
export default function handler(req, res) {
|
|
return res.json({
|
|
method: req.method,
|
|
headers: req.headers,
|
|
})
|
|
}
|