diff --git a/core/server/web/api/canary/admin/routes.js b/core/server/web/api/canary/admin/routes.js index 413ab5b30b..06ac50aae3 100644 --- a/core/server/web/api/canary/admin/routes.js +++ b/core/server/web/api/canary/admin/routes.js @@ -138,7 +138,7 @@ module.exports = function apiRoutes() { router.get('/members/:id/signin_urls', mw.authAdminApi, http(api.memberSigninUrls.read)); // ## Stats - router.get('/stats/member-count', mw.authAdminApi, http(api.stats.memberCountHistory)); + router.get('/stats/member_count', mw.authAdminApi, http(api.stats.memberCountHistory)); // ## Labels router.get('/labels', mw.authAdminApi, http(api.labels.browse)); diff --git a/test/e2e-api/admin/stats.test.js b/test/e2e-api/admin/stats.test.js index 4219c24774..2d6f526f5e 100644 --- a/test/e2e-api/admin/stats.test.js +++ b/test/e2e-api/admin/stats.test.js @@ -12,7 +12,7 @@ describe('Stats API', function () { it('Can fetch member count history', async function () { await agent - .get(`/stats/member-count`) + .get(`/stats/member_count`) .expectStatus(200) .matchBodySnapshot({ stats: [{