First Logging in is not required when using meteor restivus

旧街凉风 提交于 2019-12-13 03:13:38
问题 I am using meteor restivus to create a rest api. The issue I have is that the api does not force me to login to do posts and gets My code is as follows: Articles = new Mongo.Collection('articles'); if (Meteor.isServer) { // Global API configuration var Api = new Restivus({ useDefaultAuth: true, authRequired: true, prettyJson: true, version:'v1' }); Api.addCollection(Articles); } I did a POST using: curl -X POST http://localhost:3000/api/v1/articles/ -d "title=Witty Title" -d "author=Jack Rose