diff --git a/frontend/app.js b/frontend/app.js index 4a080e5..241694e 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -247,9 +247,9 @@ function _registerSW() { async function _fetchVapidPublicKey() { try { - const res = await fetch('/api/vapid-public-key'); + const res = await fetch('/api/push/public-key'); if (!res.ok) { - console.warn('[baton] /api/vapid-public-key returned', res.status); + console.warn('[baton] /api/push/public-key returned', res.status); return null; } const data = await res.json();