UNPKG

tipi-services

Version:

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

9 lines (7 loc) 353 B
const Endpoint = require('../../../helpers/Endpoint') module.exports = (baseUrl) => ({ createOrUpdate: Endpoint.base(baseUrl).post('/shortLinks'), update: Endpoint.base(baseUrl).patch('/shortLinks/:shortId'), details: Endpoint.base(baseUrl).get('/shortLinks/:shortId'), remove: Endpoint.base(baseUrl).delete('/shortLinks/:shortId'), })