mirror of
https://github.com/LukeHagar/sveltekit-og.git
synced 2025-12-06 04:21:37 +00:00
11 lines
323 B
TypeScript
11 lines
323 B
TypeScript
import OG from './OG.svelte';
|
|
import type { RequestHandler } from '@sveltejs/kit';
|
|
import { componentToImageResponse } from '@ethercorps/sveltekit-og';
|
|
|
|
export const GET: RequestHandler = async () => {
|
|
return componentToImageResponse(
|
|
OG,
|
|
{ text: 'Ready to dive in?', spanText: 'Start your free trial today.' }
|
|
);
|
|
};
|