http/test/fixture/api.js

10 lines
150 B
JavaScript

module.exports = {
path: '/test_api',
handler(req, res) {
res.end(JSON.stringify({
url: req.url,
method: req.method
}))
}
}