Initial commit
This commit is contained in:
9
src/pages/api/sync/project.ts
Normal file
9
src/pages/api/sync/project.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { APIRoute } from 'astro';
|
||||
import { buildSyncScript } from '../../../lib/sync';
|
||||
|
||||
export const GET: APIRoute = async ({ url }) => {
|
||||
const script = await buildSyncScript(url.origin, '.claude/skills');
|
||||
return new Response(script, {
|
||||
headers: { 'Content-Type': 'text/plain; charset=utf-8' },
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user