You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be a way for the UI to retrieve stats from the server side.
It may be an endpoint handler for GET /apiko/stats
Perhaps it would be convenient to put the handler in /src/apiko/stats/get.js in the same way as for example the /src/apiko/core/get.js exists.
This endpoint should also be registered in the core part of server's setup (/src/core.js), extending the endpoints object with for example:
'GET /apiko/core': {
extendable: false,
comment: 'Stats data with optional interval parameters. If no interval is set, data for the recent 30 days will be returned.
handlers: {
core: './apiko/stats/get'
},
params: {
start: {
required: false,
regex: '^\\d+$',
comment: 'Time interval start for the requested stats as an UNIX timestamp.'
},
end: {
required: false,
regex: '^\\d+$',
comment: 'Time interval end for the requested stats as an UNIX timestamp.'
},
}
}
The text was updated successfully, but these errors were encountered:
There should be a way for the UI to retrieve stats from the server side.
It may be an endpoint handler for
GET /apiko/stats
Perhaps it would be convenient to put the handler in
/src/apiko/stats/get.js
in the same way as for example the/src/apiko/core/get.js
exists.This endpoint should also be registered in the core part of server's setup (
/src/core.js
), extending the endpoints object with for example:The text was updated successfully, but these errors were encountered: