mirror of
https://github.com/LukeHagar/relay.git
synced 2025-12-08 20:57:46 +00:00
Implement SvelteKit webhook relay with SSE, auth, and real-time features
Co-authored-by: lukeslakemail <lukeslakemail@gmail.com>
This commit is contained in:
10
sveltekit-integration/src/hooks.server.ts
Normal file
10
sveltekit-integration/src/hooks.server.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { handle as authHandle } from '$auth';
|
||||
import { sequence } from '@sveltejs/kit/hooks';
|
||||
import type { Handle } from '@sveltejs/kit';
|
||||
|
||||
const customHandle: Handle = async ({ event, resolve }) => {
|
||||
// Add custom server-side logic here if needed
|
||||
return resolve(event);
|
||||
};
|
||||
|
||||
export const handle = sequence(authHandle, customHandle);
|
||||
Reference in New Issue
Block a user