1.1.7 • Published 9 years ago
poyocore-back v1.1.7
poyocore-back
Here is hello world example :
var PoyoCore = require('poyocore-back');
var pc = new PoyoCore();
pc.api.addMethod({
endPoint: 'api/myData',
name: 'list',
HTTPMethod: 'GET',
action: function(resolve, reject) {
// - this - contains all the informations you will need about your request
// console.log(this);
resolve({
hello:"world"
});
}
});
pc.server.start();
// Just try to reach http://localhost:8080/api/myData/list1.1.7
9 years ago
1.1.6
9 years ago
1.1.5
9 years ago
1.1.3
9 years ago
1.1.2
9 years ago
1.1.1
9 years ago
1.1.0
9 years ago
1.0.11
9 years ago
1.0.10
9 years ago
1.0.9
9 years ago
1.0.8
9 years ago
1.0.7
9 years ago
1.0.6
9 years ago
1.0.5
9 years ago
1.0.4
9 years ago
1.0.3
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago