UNPKG

tipi-services

Version:

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

9 lines (7 loc) 328 B
const Endpoint = require('../../../helpers/Endpoint') module.exports = (baseUrl) => ({ create: Endpoint.base(baseUrl).post('/transactions'), list: Endpoint.base(baseUrl).get('/transactions'), details: Endpoint.base(baseUrl).get('/transactions/:id'), update: Endpoint.base(baseUrl).patch('/transactions/:id') })