Add sitemap

This commit is contained in:
Jade Ellis committed 2024-03-08 21:34:52 +00:00
1 parent 708dbc8355
commit b7996e5046
4 files changed
+15

No files matched your search

@@ -0,0 +1,11 @@
// https://github.com/jasongitmail/super-sitemap/
import * as sitemap from 'super-sitemap';
import { SITE_URL } from '$lib/metadata';
import type { RequestHandler } from '@sveltejs/kit';
export const GET: RequestHandler = async ({ params }) => {
return await sitemap.response({
origin: SITE_URL,
page: params.page,
});
};