Files
marqdo/ext/web/route.mq.md
T
cflmyandCursor 3cabe53da2 release: v2.1.4 isolated HTTP execute (ADR 0009)
Default execute/sse-live/stream to Supervisor worker pool; MR-01 gold;
/_runtime/*; bump CLI/wasm/ext to 2.1.4.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-26 18:33:33 +08:00

1.7 KiB

markup, title, description, import
markup title description import
occlusion ext/web/route Declared Endpoint / Document route registration (ADR 0007).
cap table
ext/web/_capability.mq.md lib/table.mq.md

route

+ `app`
+ `path`
+ `method`="GET"
+ `page`=None
+ `fn`=""
+ `request`="json"
+ `response`="json"
+ `auth`=""
+ `class`=""

Declared route handle. Prefer web.route / Artifact type: endpoint discovery via web.serve. Optional class: execute | short | read | control (empty → heuristic / legacy_serial).

cap.load out =

_type app path method page fn request response auth class
route app path method page fn request response auth class

out

use

+ `middleware`

Attach middleware table to this route (|header|value| or named capability rows).

cap.load > web_route_use route=self middleware=middleware

register

+ `app`=None

Register this declared route on an app handle.

cap.load a = app

  1. a == None a = app)

_ = 1 page = page) fn = fn)

  1. page path = path) > web_app_route app=a path=path page=page
  2. fn path = path) method = method) request = request) response = response) class = class) > web_app_invoke app=a path=path method=method fn=fn body=request return=response class=class

> table.put in=None at="ok" value=False