mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 17:39:47 +00:00
Changed .NET ready to be a get request
This commit is contained in:
parent
a224d2ab10
commit
2c48ef950c
@ -80,7 +80,7 @@ public sealed class RustService(string apiPort) : IDisposable
|
||||
{
|
||||
const string URL = "/system/dotnet/ready";
|
||||
this.logger!.LogInformation("Notifying Rust runtime that the app is ready.");
|
||||
var response = await this.http.PostAsync(URL, new StringContent(string.Empty));
|
||||
var response = await this.http.GetAsync(URL);
|
||||
if (!response.IsSuccessStatusCode)
|
||||
{
|
||||
this.logger!.LogError($"Failed to notify Rust runtime that the app is ready: '{response.StatusCode}'");
|
||||
|
@ -609,7 +609,7 @@ fn dotnet_port() -> String {
|
||||
format!("{dotnet_server_port}")
|
||||
}
|
||||
|
||||
#[post("/system/dotnet/ready")]
|
||||
#[get("/system/dotnet/ready")]
|
||||
async fn dotnet_ready() {
|
||||
let main_window_spawn_clone = &MAIN_WINDOW;
|
||||
let dotnet_server_port = *DOTNET_SERVER_PORT;
|
||||
|
Loading…
Reference in New Issue
Block a user