Skip to content

Commit 6d9fe6c

Browse files
committed
update tutorials server page
1 parent f23680f commit 6d9fe6c

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

‎apps/codingcatdev/src/routes/(content-list)/frameworks/+page.server.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { listContent } from '$lib/server/content';
22
import { ContentType } from '$lib/types';
33
import type { PageServerLoad } from './$types';
44

5-
const contentType = ContentType.framework;
5+
const contentType = ContentType.course;
66

77
export const load = (async () => {
88
return {
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import { listContent } from '$lib/server/content';
22
import { ContentType } from '$lib/types';
3+
import type { PageServerLoad } from './$types';
34

45
const contentType = ContentType.tutorial;
56

6-
/**
7-
* @type {import('./$types').PageServerLoad}
8-
* */
9-
export async function load() {
7+
export const load = (async () => {
108
return {
119
contentType,
1210
...(await listContent({ contentType }))
1311
};
14-
}
12+
}) satisfies PageServerLoad;

0 commit comments

Comments
 (0)