UNPKG

tipi-services

Version:

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

9 lines (7 loc) 364 B
const Endpoint = require('../../../helpers/Endpoint') module.exports = (baseUrl) => ({ getById: Endpoint.base(baseUrl).get('/hostels/:id/apiKeys'), find: Endpoint.base(baseUrl).get('/apiKeys/find'), reset: Endpoint.base(baseUrl).post('/hostels/:id/apiKeys/:key/reset'), update: Endpoint.base(baseUrl).patch('/hostels/:id/apiKeys/:key') })