aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.ts
diff options
context:
space:
mode:
authorMohammad Amoush <51237606+jameshu111@users.noreply.github.com>2023-03-18 16:56:13 -0400
committerMohammad Amoush <51237606+jameshu111@users.noreply.github.com>2023-03-18 16:56:13 -0400
commitd51a57e1d0823fc08a90b73d427ab5e35b72422f (patch)
treeef9f03ab6eef595567f800747d280a033dc69980 /src/server/index.ts
parent0f3f5fa7f63dddbfbf095f65b05f89cf27cbc6cf (diff)
Add operations counter
Diffstat (limited to 'src/server/index.ts')
-rw-r--r--src/server/index.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index 0848d828e..d76f12b95 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -87,6 +87,12 @@ function routeSetter({ isRelease, addSupervisedRoute, logRegistrationOutcome }:
addSupervisedRoute({
method: Method.GET,
subscription: '/stats',
+ secureHandler: ({ res }) => DashStats.handleStats(res),
+ });
+
+ addSupervisedRoute({
+ method: Method.GET,
+ subscription: '/statsview',
secureHandler: ({ res }) => DashStats.handleStatsView(res),
});