Skip to content

Conversation

@this-pama
Copy link
Contributor

@this-pama this-pama commented Aug 22, 2023

  • Create an endpoint for the global platform data. This endpoint tries to aggregate all needed data for the global platform into a single API call.
  • Expose an endpoint to add and delete pads from the collection.

@this-pama this-pama changed the title Expose global paltform dara via API endpoints Expose global paltform data via API endpoints Aug 29, 2023
const jwt = require('jsonwebtoken')
const { modules } = include('config/')
const engage = include('routes/engage/pin/pad')
const { parsers } = include('routes/helpers/')
Copy link
Collaborator

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.

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);
Copy link
Collaborator

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.

const data = await load.global_data({req, res});
return res.json(data)
}
else if (object === 'pin'){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not needed

@JosuaKrause JosuaKrause changed the title Expose global paltform data via API endpoints Expose global platform data via API endpoints Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants