kin: BATON-BIZ-002-frontend_dev

This commit is contained in:
Gros Frumos 2026-03-21 12:38:52 +02:00
parent 40e1a9fa48
commit 86a41a3b35

View file

@ -247,9 +247,9 @@ function _registerSW() {
async function _fetchVapidPublicKey() { async function _fetchVapidPublicKey() {
try { try {
const res = await fetch('/api/vapid-public-key'); const res = await fetch('/api/push/public-key');
if (!res.ok) { 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; return null;
} }
const data = await res.json(); const data = await res.json();