adds map view for lists

This commit is contained in:
Christian Beutel
2024-03-21 12:01:41 +01:00
parent c7cc33b3e6
commit 01dfea0a03
12 changed files with 220 additions and 50 deletions

View File

@@ -6,7 +6,7 @@ export async function GET(event: RequestEvent) {
const sort = event.url.searchParams.get('sort') ?? ""
try {
const r: List[] = await pb.collection('lists').getFullList<List>({
expand: "trails",
expand: "trails,trails.waypoints,trails.category",
sort: sort,
})
return json(r)