Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

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

Open
HarounOujihi opened this issue Feb 10, 2018 · 1 comment
Open

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

HarounOujihi opened this issue Feb 10, 2018 · 1 comment

Comments

@HarounOujihi
Copy link

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
Copy link

ptandler commented Sep 7, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants