API with CORS test

node v4.9.1
version: 3.0.1
endpointsharetweet
var endpoint = require("@runkit/tonic/json-endpoint/1.0.0") endpoint(module.exports, async function(request) { var names = []; names.push({id: 1001, firstName: 'Scott', lastName: 'Dernley', username: 'dernls01', emailAddress: 'sdernley@sjm.com'}); names.push({id: 1002, firstName: 'Rex', lastName: 'Strowbridge', username: 'strowr01', emailAddress: 'rstrowbridge@sjm.com'}); names.push({id: 1003, firstName: 'Scott', lastName: 'Dernley', username: 'dernls01', emailAddress: 'sdernley@sjm.com'}); names.push({id: 1004, firstName: 'Rex', lastName: 'Strowbridge', username: 'strowr01', emailAddress: 'rstrowbridge@sjm.com'}); names.push({id: 1005, firstName: 'Scott', lastName: 'Dernley', username: 'dernls01', emailAddress: 'sdernley@sjm.com'}); names.push({id: 1006, firstName: 'Rex', lastName: 'Strowbridge', username: 'strowr01', emailAddress: 'rstrowbridge@sjm.com'}); return names; })
Loading…

no comments

    sign in to comment