Moved client api routes to client name space

This commit is contained in:
2025-02-28 22:55:25 +01:00
parent 3699b8d54a
commit 6d61e026c1
8 changed files with 26 additions and 19 deletions

View File

@@ -159,7 +159,7 @@
try
{
Status = await ApiClient.GetJson<ServerStatusResponse>(
$"api/servers/{Server.Id}/status"
$"api/client/servers/{Server.Id}/status"
);
}
catch (Exception e)

View File

@@ -1,5 +1,5 @@
@using Microsoft.AspNetCore.SignalR.Client
@using MoonlightServers.Frontend.UI.Views.User
@using MoonlightServers.Frontend.UI.Views.Client
@using MoonlightServers.Shared.Enums
@using MoonlightServers.Shared.Http.Responses.Users.Servers

View File

@@ -34,7 +34,7 @@
await AlertService.ConfirmDanger(
"Server installation",
"Do you really want to reinstall the server? This can potentially lead to loss of data",
() => HttpApiClient.Post($"api/servers/{Server.Id}/install")
() => HttpApiClient.Post($"api/client/servers/{Server.Id}/install")
);
}
}