add new /Callcount endpoint (#480)

* add new /Callcount endpoint

* update db-helpers

* update endpoint
This commit is contained in:
Sam Machin
2025-07-03 16:49:27 +01:00
committed by GitHub
parent 0d4b7e88ad
commit 9854666d4f
5 changed files with 32 additions and 9 deletions

6
app.js
View File

@@ -48,7 +48,8 @@ const {
retrieveKey,
deleteKey,
incrKey,
listConferences
listConferences,
getCallCount
} = require('./lib/helpers/realtimedb-helpers');
const {
getTtsVoices,
@@ -118,7 +119,8 @@ app.locals = {
queryAlertsSP,
writeCdrs,
writeAlerts,
AlertType
AlertType,
getCallCount
};
const unless = (paths, middleware) => {