Skip to content

Commit

Permalink
Add new unauthenticated route for reporting stats API (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
abbashus authored Feb 2, 2021
1 parent e264bbd commit d9a64ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '' }),
}),
Expand Down

0 comments on commit d9a64ca

Please sign in to comment.