UNPKG

tipi-services

Version:

Node.js library to access wrapping REST API of tipi backend services

11 lines (9 loc) 527 B
const Endpoint = require('../../../helpers/Endpoint') module.exports = (baseUrl) => ({ list: Endpoint.base(baseUrl).get('/notifications/:ownerId'), seenAll: Endpoint.base(baseUrl).post('/notifications/:ownerId/seenAll'), seen: Endpoint.base(baseUrl).post('/notifications/:ownerId/seen'), delivered: Endpoint.base(baseUrl).post('/notifications/:ownerId/delivered'), clear: Endpoint.base(baseUrl).delete('/notifications/:ownerId/clear'), remove: Endpoint.base(baseUrl).delete('/notifications/:ownerId') })