2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Improving examples

This commit is contained in:
mzabriskie
2015-04-08 13:24:43 -06:00
parent 8a4e502e3a
commit 4ad5438f61
12 changed files with 245 additions and 16 deletions
+34
View File
@@ -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();
};