Rewrite website as a Hyprland desktop
This commit is contained in:
1 parent
7c52779cf6
commit
3065ad6092
197 files changed
+5609
-17779
No files matched your search
@@ -0,0 +1,8 @@
|
||||
import { json } from '@sveltejs/kit';
|
||||
import { getDiscordPresence } from '#lib/server/discord';
|
||||
import type { RequestHandler } from './$types';
|
||||
|
||||
export const GET: RequestHandler = async () => {
|
||||
const presence = await getDiscordPresence();
|
||||
return json(presence, { headers: { 'Cache-Control': 'public, max-age=15' } });
|
||||
};
|
||||
Reference in new issue
Block a user