2025-10-25 22:04:41 +02:00
|
|
|
import * as sitemap from "super-sitemap";
|
|
|
|
|
import { getArticles, getModels, getVideos } from "$lib/services";
|
|
|
|
|
|
|
|
|
|
export const GET = async () => {
|
2026-03-04 22:27:54 +01:00
|
|
|
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),
|
2026-03-06 12:35:11 +01:00
|
|
|
"/models/[slug]": (await getModels(fetch))
|
|
|
|
|
.map((a) => a.slug)
|
|
|
|
|
.filter((s): s is string => s !== null),
|
2026-03-04 22:27:54 +01:00
|
|
|
"/videos/[slug]": (await getVideos(fetch)).map((a) => a.slug),
|
|
|
|
|
},
|
|
|
|
|
defaultChangefreq: "always",
|
|
|
|
|
defaultPriority: 0.7,
|
|
|
|
|
sort: "alpha", // default is false; 'alpha' sorts all paths alphabetically.
|
|
|
|
|
});
|
2025-10-25 22:04:41 +02:00
|
|
|
};
|