Remove url options parsing from server renderer
This will be done via the api
This commit is contained in:
parent
aca40f5666
commit
7c823d1f8b
@ -21,11 +21,6 @@ export async function onBeforeRender(pageContext: PageContext) {
|
||||
report: "Game Reports",
|
||||
};
|
||||
|
||||
const { searchParams } = new URL(
|
||||
pageContext.urlOriginal,
|
||||
"http://localhost:8788"
|
||||
);
|
||||
|
||||
const allowedTypes = [];
|
||||
|
||||
for (const [type, ints] of Object.entries(typePermissions)) {
|
||||
@ -41,10 +36,6 @@ export async function onBeforeRender(pageContext: PageContext) {
|
||||
status: 403,
|
||||
};
|
||||
|
||||
const includeClosed = searchParams.get("includeClosed");
|
||||
const type = searchParams.get("type");
|
||||
const sort = searchParams.get("sort") ?? "asc";
|
||||
|
||||
return {
|
||||
pageContext: {
|
||||
pageProps: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user