stubailo / meteor-rest

:sleeping: simple:rest - make your Meteor app accessible over HTTP and DDP alike
https://atmospherejs.com/simple/rest
MIT License
382 stars 85 forks source link

methods added to /publications/api-routes/ but not working ! #151

Open HarounOujihi opened 6 years ago

HarounOujihi commented 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 ??

ptandler commented 4 years ago

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