tipi-services
Version:
Node.js library to access wrapping REST API of tipi backend services
10 lines (8 loc) • 474 B
JavaScript
const Endpoint = require('../../../helpers/Endpoint')
module.exports = (baseUrl) => ({
create: Endpoint.base(baseUrl).post('/mandrillIntegrations'),
update: Endpoint.base(baseUrl).patch('/mandrillIntegrations/:ownerId'),
details: Endpoint.base(baseUrl).get('/mandrillIntegrations/:ownerId'),
listTemplates: Endpoint.base(baseUrl).get('/mandrillIntegrations/:ownerId/templates'),
remove: Endpoint.base(baseUrl).delete('/mandrillIntegrations/:ownerId')
})