mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
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:
parent
a45a899137
commit
115ea533f6
3 changed files with 22 additions and 16 deletions
|
|
@ -18,9 +18,8 @@ Template.boardMenuPopup.events({
|
|||
Template.boardMenuPopup.helpers({
|
||||
exportUrl() {
|
||||
const boardId = Session.get('currentBoard');
|
||||
const userId = Meteor.userId();
|
||||
const loginToken = Accounts._storedLoginToken();
|
||||
return Meteor.absoluteUrl(`api/b/${boardId}/${userId}/${loginToken}`);
|
||||
return Meteor.absoluteUrl(`api/boards/${boardId}?authToken=${loginToken}`);
|
||||
},
|
||||
exportFilename() {
|
||||
const boardId = Session.get('currentBoard');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue