mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-08 20:32:49 +00:00
Update Frontedn (#3216)
This commit is contained in:
committed by
GitHub
parent
9f2d44879f
commit
05d4064f03
@@ -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();
|
||||
};
|
||||
|
||||
@@ -55,4 +55,9 @@ export interface Version {
|
||||
export interface OperatingSystem {
|
||||
name: string;
|
||||
versions: Version[];
|
||||
}
|
||||
|
||||
export interface AppVersion {
|
||||
name: string;
|
||||
version: string;
|
||||
}
|
||||
Reference in New Issue
Block a user