diff options
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 } } |
