axios-axios/examples/get/server.js
techcodie f8694341de
docs: refresh CDN URLs and example JSON headers (#7236)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-12-30 13:30:43 +02:00

35 lines
656 B
JavaScript

const people = [
{
"name": "Matt Zabriskie",
"github": "mzabriskie",
"twitter": "mzabriskie",
"avatar": "199035"
},
{
"name": "Ryan Florence",
"github": "rpflorence",
"twitter": "ryanflorence",
"avatar": "100200"
},
{
"name": "Kent C. Dodds",
"github": "kentcdodds",
"twitter": "kentcdodds",
"avatar": "1500684"
},
{
"name": "Chris Esplin",
"github": "deltaepsilon",
"twitter": "chrisesplin",
"avatar": "878947"
}
];
export default function (req, res) {
res.writeHead(200, {
'Content-Type': 'application/json'
});
res.write(JSON.stringify(people));
res.end();
};