1.0.4 • Published 2 years ago
@zahooz/usage-proxy v1.0.4
Usage Tracker Proxy
Installation
Install @zahooz/usage-proxy
using the following command
npm install --save @zahooz/usage-proxy
Usage
import ProxyController from '@zahooz/usage-proxy'
// include in routes
Route.group(() => {
Route.any('*', async (ctx) => {
return new ProxyController('usage tracker api url').proxy(ctx)
// contact usage tracker team for the api url
})
}).prefix('/api/v1/usage-tracker');