Let pages in the page view load their local files

This commit is contained in:
Ian Gulliver
2026-10-23 05:44:19 -07:00
parent dfb114ea64
commit d391b41bf6
5 changed files with 510 additions and 472 deletions
+3 -6
View File
@@ -875,17 +875,15 @@ paths:
"404": { $ref: "#/components/responses/Error" }
"409": { $ref: "#/components/responses/Error" }
/api/tasks/{taskId}/raw:
parameters:
- { name: taskId, in: path, required: true, schema: { type: string } }
/api/raw:
get:
operationId: getTaskRaw
operationId: getRaw
description: >
A regular file on the server, whole, with a content type chosen by its extension: an HTML page in the
app's Page view and the stylesheets, scripts and images it loads. The response carries a sandbox
Content-Security-Policy, so a page opened from this address directly can't act on the API as its viewer.
parameters:
- { name: path, in: query, required: true, schema: { type: string }, description: "Slash-separated, absolute or relative to the task's worktree root." }
- { name: path, in: query, required: true, schema: { type: string }, description: "Absolute and slash-separated." }
responses:
"200":
description: The file's bytes.
@@ -893,7 +891,6 @@ paths:
"*/*": { schema: { type: string, format: binary } }
"400": { $ref: "#/components/responses/Error" }
"404": { $ref: "#/components/responses/Error" }
"409": { $ref: "#/components/responses/Error" }
/api/terminals:
get: