Remove url options parsing from server renderer

This will be done via the api
This commit is contained in:
regalijan 2023-10-19 16:49:07 -04:00
parent aca40f5666
commit 7c823d1f8b
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -21,11 +21,6 @@ export async function onBeforeRender(pageContext: PageContext) {
report: "Game Reports", report: "Game Reports",
}; };
const { searchParams } = new URL(
pageContext.urlOriginal,
"http://localhost:8788"
);
const allowedTypes = []; const allowedTypes = [];
for (const [type, ints] of Object.entries(typePermissions)) { for (const [type, ints] of Object.entries(typePermissions)) {
@ -41,10 +36,6 @@ export async function onBeforeRender(pageContext: PageContext) {
status: 403, status: 403,
}; };
const includeClosed = searchParams.get("includeClosed");
const type = searchParams.get("type");
const sort = searchParams.get("sort") ?? "asc";
return { return {
pageContext: { pageContext: {
pageProps: { pageProps: {