data endpoint for entity 90008 (aka. a website)
at svelte 354 B view raw
1import { checkUrl as checkApiToken } from '$lib/apiToken.js'; 2import { pushNotification } from '$lib/pushnotif'; 3 4export const GET = async ({ url }) => { 5 if (!checkApiToken(url)) return new Response(); 6 const content = url.searchParams.get('content'); 7 if (content === null) return new Response(); 8 pushNotification(content); 9 return new Response(); 10};