From d9a64ca70fa26edc9a2df96edb425b522763fe01 Mon Sep 17 00:00:00 2001 From: Abbas Hussain Date: Tue, 2 Feb 2021 11:24:50 -0800 Subject: [PATCH] Add new unauthenticated route for reporting stats API (#697) --- server/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/index.ts b/server/index.ts index 0b86904a1..b86e03a96 100644 --- a/server/index.ts +++ b/server/index.ts @@ -69,7 +69,9 @@ export const configSchema = schema.object({ }, }), anonymous_auth_enabled: schema.boolean({ defaultValue: false }), - unauthenticated_routes: schema.arrayOf(schema.string(), { defaultValue: ['/api/status'] }), + unauthenticated_routes: schema.arrayOf(schema.string(), { + defaultValue: ['/api/status', '/api/reporting/stats'], + }), forbidden_usernames: schema.arrayOf(schema.string(), { defaultValue: [] }), logout_url: schema.string({ defaultValue: '' }), }),