@deepblend/dsh-blender-contracts 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ui-api.js +7 -0
- package/package.json +1 -1
package/lib/ui-api.js
CHANGED
|
@@ -43,6 +43,13 @@ export const UI_REST_MARKER = '*'
|
|
|
43
43
|
*/
|
|
44
44
|
export const UI_ROUTES = Object.freeze([
|
|
45
45
|
{ id: 'capabilities', method: 'GET', path: '/deepblend/capabilities', write: false, summary: 'Blender capabilities and the settings card.' },
|
|
46
|
+
// The one route whose response is an HTML document rather than JSON: the
|
|
47
|
+
// standalone fullscreen workbench (SPEC §20 M6). It is a READ route — it
|
|
48
|
+
// answers with a page, and every write that page performs goes through the
|
|
49
|
+
// routes below it. The page it serves loads this package's OWN client bundle
|
|
50
|
+
// out of the boot graph, so the six tabs are rendered by one implementation
|
|
51
|
+
// (`contract/workbench-page.test.mjs` is what holds that).
|
|
52
|
+
{ id: 'workbench.page', method: 'GET', path: '/deepblend/workbench', write: false, summary: 'The standalone fullscreen workbench document.' },
|
|
46
53
|
{ id: 'state', method: 'GET', path: '/deepblend/state', write: false, summary: 'Everything the panel needs to render itself from scratch.' },
|
|
47
54
|
{ id: 'projects.list', method: 'GET', path: '/deepblend/projects', write: false, summary: 'Every project in the store.' },
|
|
48
55
|
{ id: 'projects.create', method: 'POST', path: '/deepblend/projects', write: true, summary: 'Create a project (title, optional seed scene).' },
|