mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-01-18 04:22:27 +01:00
add static site generation including robots.txt and sitemap.xml
This commit is contained in:
@@ -18,6 +18,9 @@ import { Module } from "../model/module";
|
||||
import { Calendar } from "../model/calendar";
|
||||
|
||||
export async function getCalender(token: string): Promise<Module[]> {
|
||||
if (import.meta.env.SSR) {
|
||||
return [];
|
||||
}
|
||||
const request = new Request("/api/collections/feeds/records/" + token, {
|
||||
method: "GET",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user