diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-10-07 00:46:47 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-10-07 00:46:47 -0400 |
| commit | b0c69c203ee697b7adf962a54e27203a13cf4ceb (patch) | |
| tree | 5b9c8219fc0f0382b481fb94e52ab89c1ac72408 /api/api.go | |
| parent | ad4befb67ef768f96f481d0917e459e49a32308f (diff) | |
Update vtt status endpoint to check container
Diffstat (limited to 'api/api.go')
| -rw-r--r-- | api/api.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -52,7 +52,7 @@ func respondOnline(w http.ResponseWriter, status ServerStatus) { } func VttOnline(w http.ResponseWriter, req *http.Request) { - status := remoteOnline(req.Context(), VTT_URL) + status := vttStatus(req.Context()) if !status.Online { Logger.DebugContext(req.Context(), "Foundry VTT is offline") @@ -89,7 +89,7 @@ func VttLogs(w http.ResponseWriter, req *http.Request) { if _, err = stdcopy.StdCopy(w, w, logReader); err != nil { Logger.Error("Error occured while writting logs to response", slog.Any("err", err), slog.Any("request", req)) http.Error(w, "Error occured while writting logs", http.StatusInternalServerError) - return + return } } |
