diff --git a/src/routes/sitemap.xml/+server.ts b/src/routes/sitemap.xml/+server.ts index 8e9270f..476f9f3 100644 --- a/src/routes/sitemap.xml/+server.ts +++ b/src/routes/sitemap.xml/+server.ts @@ -4,32 +4,10 @@ import type { RequestHandler } from "./$types"; export const GET: RequestHandler = async () => { try { - const [users, minions] = await Promise.all([ - prisma.user.findMany({ - select: { - username: true - } - }), - prisma.auction.findMany({ - select: { - id: true, - user: { - select: { - username: true - } - } - } - }) - ]); - return await sitemap.response({ origin: "https://minionah.com", - excludeRoutePatterns: [".*\\(protected\\).*", "^/api.*"], - additionalPaths: ["/api/craftcost/docs"], - paramValues: { - "/user/[user=username]": users.map(({ username }: { username: string }) => username), - "/user/[user=username]/[minionID]": minions.map(({ user: { username }, id }: { user: { username: string }; id: string }) => [username, id]) - } + excludeRoutePatterns: [".*\\(protected\\).*", "^/api.*", ".*\\[user=username\\].*"], + additionalPaths: ["/api/craftcost/docs"] }); } catch (e) { console.error(e);