parse-server-example
parse-server-example copied to clipboard
Running a cloud function from express route
Using the new parse server is there a way to call a function in the main.js file from the index.js? Example is to allow an endpoint for a third party so they can post a set of data without needed the application_id or any keys.
Old hosted parse.com allowed like this;
app.post('/test', function(req, res) {
Parse.Cloud.run('functionname' data);
}
But I cannot get the routing to work in parse-server.
It's possible, yeah, and should work, but you have to do something with the response. Not clear what issue you're having here. If you're still having trouble, please open a new issue with more details.