Files
sexy/packages/frontend/src/routes/sitemap.xml/+server.ts
Sebastian Krüger ad7ceee5f8 fix: resolve lint errors from ACL/admin implementation
- Remove unused requireOwnerOrAdmin import from videos.ts
- Remove unused requireAuth import from users.ts
- Remove unused GraphQLError import from articles.ts
- Replace URLSearchParams with SvelteURLSearchParams in admin users page
- Apply prettier formatting to all changed files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-06 12:35:11 +01:00

20 lines
757 B
TypeScript

import * as sitemap from "super-sitemap";
import { getArticles, getModels, getVideos } from "$lib/services";
export const GET = async () => {
return await sitemap.response({
origin: "https://sexy.pivoine.art",
excludeRoutePatterns: ["^/signup/verify", "^/password/reset", "^/me", "^/play", "^/tags/.+"],
paramValues: {
"/magazine/[slug]": (await getArticles(fetch)).map((a) => a.slug),
"/models/[slug]": (await getModels(fetch))
.map((a) => a.slug)
.filter((s): s is string => s !== null),
"/videos/[slug]": (await getVideos(fetch)).map((a) => a.slug),
},
defaultChangefreq: "always",
defaultPriority: 0.7,
sort: "alpha", // default is false; 'alpha' sorts all paths alphabetically.
});
};