diff --git a/frontend/src/routes/chronik/+page.server.ts b/frontend/src/routes/chronik/+page.server.ts index 83bff5d4..71a03f00 100644 --- a/frontend/src/routes/chronik/+page.server.ts +++ b/frontend/src/routes/chronik/+page.server.ts @@ -1,4 +1,3 @@ -import { fail } from '@sveltejs/kit'; import { createApiClient } from '$lib/api.server'; import type { components } from '$lib/generated/api'; @@ -53,29 +52,3 @@ export async function load({ fetch, url }) { loadError }; } - -export const actions = { - dismiss: async ({ request, fetch }) => { - const api = createApiClient(fetch); - const formData = await request.formData(); - const id = formData.get('id'); - if (typeof id !== 'string' || id.length === 0) { - return fail(400, { error: 'missing id' }); - } - const result = await api.PATCH('/api/notifications/{id}/read', { - params: { path: { id } } - }); - if (!result.response.ok) { - return fail(result.response.status, { error: 'failed' }); - } - return { success: true }; - }, - 'mark-all': async ({ fetch }) => { - const api = createApiClient(fetch); - const result = await api.POST('/api/notifications/read-all'); - if (!result.response.ok) { - return fail(result.response.status, { error: 'failed' }); - } - return { success: true }; - } -}; diff --git a/frontend/src/routes/chronik/+page.svelte b/frontend/src/routes/chronik/+page.svelte index 24bbc394..54b64d63 100644 --- a/frontend/src/routes/chronik/+page.svelte +++ b/frontend/src/routes/chronik/+page.svelte @@ -1,5 +1,5 @@