12 lines
169 B
JavaScript
12 lines
169 B
JavaScript
|
export const config = {
|
||
|
api: {
|
||
|
bodyParser: true
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default (req, res) => {
|
||
|
if (req.body) {
|
||
|
res.status(200).json({ message: 'Parsed body' })
|
||
|
}
|
||
|
}
|