【文件属性】:
文件名称:meteor-rest-api-express:用于流星的 Express rest-api 包装
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-10 21:11:38
JavaScript
流星休息API快递
安装:
meteor add gfk:rest-api-express
用:
function auth1 (params, body, header) {
if (body.apiKey) {
return checkApiKey(body.apiKey);
} else {
return false;
}
}
restapi = new RestApi(undefined, auth1, console);
// code to run on server at startup
restapi.add('/car/:carId', {
'get': function (params) {
return getStuff(params.carId);
},
'post'
【文件预览】:
meteor-rest-api-express-master
----package.js(470B)
----.gitignore(22B)
----gfk:rest-api-express.js(432B)
----README.md(4KB)