mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
add screenshot preview logic
This commit is contained in:
@@ -10,10 +10,6 @@ post {
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:file {
|
||||
file: @file(/home/fedorra-44/Downloads/10 Revenge Party und Playoff.mov) @contentType(video/quicktime)
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
|
||||
+3
-3
@@ -186,7 +186,7 @@ func keyboardInputRoute(ctx echo.Context) error {
|
||||
}
|
||||
|
||||
slog.Info("Keyboard input sent", "key", request.Key)
|
||||
return ctx.NoContent(http.StatusOK)
|
||||
return ctx.JSON(http.StatusCreated, struct{ Message string }{Message: "Success"})
|
||||
}
|
||||
|
||||
func uploadFileRoute(ctx echo.Context) error {
|
||||
@@ -276,7 +276,7 @@ func openFileRoute(ctx echo.Context) error {
|
||||
}
|
||||
|
||||
slog.Info("Successfully run file", "file", pathParam)
|
||||
return ctx.NoContent(http.StatusOK)
|
||||
return ctx.JSON(http.StatusCreated, struct{ Message string }{Message: "Success"})
|
||||
}
|
||||
|
||||
func showHTMLRoute(ctx echo.Context) error {
|
||||
@@ -297,7 +297,7 @@ func showHTMLRoute(ctx echo.Context) error {
|
||||
sseConnection <- request.HTML
|
||||
|
||||
slog.Info("HTML content sent to client")
|
||||
return ctx.NoContent(http.StatusOK)
|
||||
return ctx.JSON(http.StatusCreated, struct{ Message string }{Message: "Success"})
|
||||
}
|
||||
|
||||
func pingRoute(ctx echo.Context) error {
|
||||
|
||||
Reference in New Issue
Block a user