Public | Automated Build

Last pushed: 5 months ago
Short Description
Collect news for portalen
Full Description


portalen-collector-news


Collects news for portalen

Messages handled

cmd: collect-info, type: user

Collects content for a user and/or a user's roles

seneca.act({cmd: 'collect-info', type:'user', user:user, roles:[roles]}, (error, data) => {})
curl -d '{"cmd": "collect-info", "type":"user", "user":"gasg", "roles": ["alle", "administrasjonen"]}' -v http://localhost:8000/act

Messages emitted

role: info, info: content-collected

Contains collected info for user/role wrapped in the data property

{
    system: pkg.name,
    type: 'news',
    user: user,
    data: [] //collected info
  }

License

MIT

Docker Pull Command
Owner
telemark

Comments (0)