Update Frontedn (#3216)

This commit is contained in:
Michel Roegl-Brunner 2025-03-18 13:27:35 +01:00 committed by GitHub
parent 9f2d44879f
commit 05d4064f03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 91 additions and 4 deletions

View file

@ -8,3 +8,11 @@ export const fetchCategories = async () => {
const categories: Category[] = await response.json();
return categories;
};
export const fetchVersions = async () => {
const response = await fetch(`api/versions`);
if (!response.ok) {
throw new Error(`Failed to fetch versions: ${response.statusText}`);
}
return response.json();
};

View file

@ -55,4 +55,9 @@ export interface Version {
export interface OperatingSystem {
name: string;
versions: Version[];
}
export interface AppVersion {
name: string;
version: string;
}