Let pages in the page view load their local files
This commit is contained in:
+3
-6
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user