Open HarounOujihi opened 6 years ago
I installed this pakage (meteor add simple:rest) and in my server-side i added methods like :
Meteor.methods({ this.unblock(); testCall: function () { return {key: "value"}; } });
I see my methods in http://localhost:3000/publications/api-routes/
and I can call those methods from client side like :
Meteor.call("testCall", function(error, results) { console.log("Results", results); });
but it returns nothing when I go to : http://localhost:3000/publications/testCall why i get a blank page, what wrong am i have done ??
You opened this a while ago, but in case someone reads this: as far as I understood the documentation, methods should be called via POST, not GET
I installed this pakage (meteor add simple:rest) and in my server-side i added methods like :
I see my methods in http://localhost:3000/publications/api-routes/
and I can call those methods from client side like :
Meteor.call("testCall", function(error, results) { console.log("Results", results); });
but it returns nothing when I go to : http://localhost:3000/publications/testCall why i get a blank page, what wrong am i have done ??