-
Notifications
You must be signed in to change notification settings - Fork 0
Expose global platform data via API endpoints #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
routes/apis/index.js
Outdated
| const jwt = require('jsonwebtoken') | ||
| const { modules } = include('config/') | ||
| const engage = include('routes/engage/pin/pad') | ||
| const { parsers } = include('routes/helpers/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this does not seem used.
routes/browse/pads/filter.js
Outdated
| let language = checklanguage(req.params?.language || req.session.language); | ||
| page = page ? +page : 1; | ||
|
|
||
| let collaborators_ids = safeArr((req.body.filters?.collaborators_ids || collaborators).map(d => d.uuid), req.body.filters?.uuid ?? uuid ?? DEFAULT_UUID); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what this does. presumably coming from the global platform post call.
routes/apis/index.js
Outdated
| const data = await load.global_data({req, res}); | ||
| return res.json(data) | ||
| } | ||
| else if (object === 'pin'){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not needed
Uh oh!
There was an error while loading. Please reload this page.