UNPKG

tipi-services

Version:

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

12 lines (10 loc) 514 B
const Endpoint = require('../../../helpers/Endpoint') module.exports = (baseUrl) => ({ create: Endpoint.base(baseUrl).post('/icCards'), list: Endpoint.base(baseUrl).get('/icCards'), details: Endpoint.base(baseUrl).get('/icCards/:id'), update: Endpoint.base(baseUrl).patch('/icCards/:id'), addToLock: Endpoint.base(baseUrl).post('/icCards/:id/addToLock'), removeFromLock: Endpoint.base(baseUrl).post('/icCards/:id/removeFromLock'), remove: Endpoint.base(baseUrl).delete('/icCards/:id') })