mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-01-18 12:32:26 +01:00
add static site generation including robots.txt and sitemap.xml
This commit is contained in:
@@ -19,6 +19,9 @@ export async function requestFreeRooms(
|
||||
from: string,
|
||||
to: string,
|
||||
): Promise<string[]> {
|
||||
if (import.meta.env.SSR) {
|
||||
return [];
|
||||
}
|
||||
const rooms: string[] = [];
|
||||
await fetch("/api/rooms/free?from=" + from + "&to=" + to)
|
||||
.then((response) => {
|
||||
|
||||
Reference in New Issue
Block a user