fix(config): phase 7 follow-up — fix remaining /ims/ occurrences in sw.js, notifications, components
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -20,7 +20,7 @@ export function NotificationBell() {
|
||||
const panelRef = useRef<HTMLDivElement>(null)
|
||||
|
||||
const load = useCallback(() => {
|
||||
fetch('/ims/api/notifications')
|
||||
fetch('/api/notifications')
|
||||
.then(r => (r.ok ? r.json() : Promise.reject()))
|
||||
.then((data: { notifications: Notification[]; unread: number }) => {
|
||||
setNotifications(data.notifications)
|
||||
@@ -45,7 +45,7 @@ export function NotificationBell() {
|
||||
}, [open])
|
||||
|
||||
const markAllRead = () => {
|
||||
fetch('/ims/api/notifications', {
|
||||
fetch('/api/notifications', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ all: true }),
|
||||
|
||||
Reference in New Issue
Block a user