Closed pacozaa closed 7 years ago
Ok i got it.
Don't use /
in front of addRoute
argument
if(Meteor.isServer) {
let Api = new Restivus({
useDefaultAuth: true,
prettyJson: true
});
Api.addCollection(Sensordata);
Api.addRoute('node/:_id', {
get: function () {
console.log('Testing manual response');
return true;
}
});
}
I used this code.
And get this error.
There is no route for the path: /api/node
fromkadira flow-router
butapi/sensordata
works fine.