import type { APIRoute } from 'astro';

export const GET: APIRoute = async ({ params }) => {
    return new Response(JSON.stringify({ template: { id: params.id } }), {
        headers: { 'Content-Type': 'application/json' }
    });
};

export const PUT: APIRoute = async ({ request }) => {
    return new Response(JSON.stringify({ success: true }), {
        headers: { 'Content-Type': 'application/json' }
    });
};
