2025-08-02 00:52:13 +02:00
|
|
|
import { error, type Load, type ServerLoad } from "@sveltejs/kit"
|
|
|
|
import type { PageLoad } from "./$types"
|
2025-08-02 03:00:28 +02:00
|
|
|
import type { FetchError } from "$lib/util"
|
|
|
|
import { parseSuggestion, type Suggestion } from "$lib/types"
|
2025-08-02 00:52:13 +02:00
|
|
|
|
|
|
|
export const load: PageLoad = async ({ params }) => {
|
|
|
|
if (params.id) {
|
|
|
|
return {
|
|
|
|
roomId: params.id,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
error(400, "Please provide a room id")
|
|
|
|
}
|