mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-19 20:03:51 +01:00
18 lines
420 B
TypeScript
18 lines
420 B
TypeScript
import type { APIContext } from 'astro';
|
|
|
|
export async function GET({ request }: APIContext) {
|
|
const flags: Record<string, string | null> = {
|
|
'User-agent': '*',
|
|
Allow: '/',
|
|
|
|
space: null,
|
|
Sitemap: `${new URL(request.url).origin}/sitemap-index.xml`,
|
|
};
|
|
|
|
return new Response(
|
|
Object.entries(flags)
|
|
.map(([key, value]) => (value === null ? '' : `${key}: ${value}`))
|
|
.join('\n'),
|
|
);
|
|
}
|