Export: improved API routes

- use an explicit "boards" domain: /api/boards/:boardId
- pass authToken as a request parameter: /api/boards/:boardId?authToken=:token
- in the future, same route can be used with authToken set in the Authenticate: header easily
This commit is contained in:
Xavier Priour 2015-12-17 23:57:28 +01:00
parent a45a899137
commit 115ea533f6
3 changed files with 22 additions and 16 deletions

View file

@ -88,7 +88,7 @@ Boards.helpers({
return true;
} else {
// otherwise you have to be logged-in and active member
return this.isActiveMember(user._id);
return user && this.isActiveMember(user._id);
}
},