add other config

This commit is contained in:
Fran Jurmanović
2025-02-13 01:08:44 +01:00
parent d29165261c
commit 6bb1625f3e
12 changed files with 1179 additions and 43 deletions

View File

@@ -17,6 +17,10 @@ export const getServers = async (event: RequestEvent): Promise<Server[]> => {
return fetchAPIEvent(event, '/server');
};
export const getServerById = async (event: RequestEvent, serverId: string): Promise<Server> => {
return fetchAPIEvent(event, `/server/${serverId}`);
};
export const getConfigFiles = async (
event: RequestEvent,
serverId: string