UNPKG

@unito/integration-sdk

Version:

Integration SDK

7 lines (6 loc) 229 B
function extractRelations(req, res, next) { const rawRelations = req.query.relations; res.locals.relations = typeof rawRelations === 'string' ? rawRelations.split(',') : []; next(); } export default extractRelations;