mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Improving examples
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
var 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"
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = function (req, res) {
|
||||
res.writeHead(200, {
|
||||
'Content-Type': 'text/json'
|
||||
});
|
||||
res.write(JSON.stringify(people));
|
||||
res.end();
|
||||
};
|
||||
Reference in New Issue
Block a user