This commit is contained in:
Michel Roegl-Brunner
2025-03-17 16:16:45 +01:00
parent bdf2eb6188
commit 980ad57b05
4 changed files with 32 additions and 34 deletions

View File

@@ -9,8 +9,8 @@ export const fetchCategories = async () => {
return categories;
};
export const fetchVersions = async (slug: string) => {
const response = await fetch(`api/versions?slug=${slug}`);
export const fetchVersions = async () => {
const response = await fetch(`api/versions`);
if (!response.ok) {
throw new Error(`Failed to fetch versions: ${response.statusText}`);
}