Skip to content

Commit d52a70f

Browse files
committed
fix: remove query param
1 parent cf47681 commit d52a70f

File tree

1 file changed

+1
-7
lines changed
  • apps/svelte.dev/src/routes/docs/sections

1 file changed

+1
-7
lines changed

apps/svelte.dev/src/routes/docs/sections/+server.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@ import { json } from '@sveltejs/kit';
33

44
export const prerender = true;
55

6-
export function GET({ url: { searchParams } }) {
7-
const complete = searchParams.has('complete');
8-
// by default we return a light version with just the title, the slug and the file path
9-
// but the user can opt in to get the complete content by adding ?complete
10-
if (complete) {
11-
return json(docs.pages);
12-
}
6+
export function GET() {
137
return json(
148
Object.fromEntries(
159
Object.entries(docs.pages).map(([key, page]) => [

0 commit comments

Comments
 (0)