We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf47681 commit d52a70fCopy full SHA for d52a70f
apps/svelte.dev/src/routes/docs/sections/+server.ts
@@ -3,13 +3,7 @@ import { json } from '@sveltejs/kit';
3
4
export const prerender = true;
5
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
- }
+export function GET() {
13
return json(
14
Object.fromEntries(
15
Object.entries(docs.pages).map(([key, page]) => [
0 commit comments