feat(control): bring newest changes from main to this branch (#32)

Co-authored-by: 2mal3 <56305732+2mal3@users.noreply.github.com>
This commit is contained in:
E44
2026-01-19 17:38:14 -05:00
committed by GitHub
parent ffb9f21ea5
commit 320584a1de
12 changed files with 176 additions and 153 deletions
+1 -8
View File
@@ -295,14 +295,7 @@ func downloadFileRoute(ctx echo.Context) error {
slog.Info("Serving file for download", "path", fullPath)
file, err := os.Open(fullPath)
if err != nil {
slog.Error("Failed to open file", "file", fullPath, "error", err)
return ctx.JSON(http.StatusInternalServerError, shared.ErrorResponse{Description: "Failed to open file"})
}
defer file.Close()
return ctx.Stream(http.StatusOK, "application/octet-stream", file)
return ctx.File(fullPath)
}
func openFileRoute(ctx echo.Context) error {