Files
marqdo/tests/ext/web-use-smoke.mq.md
T
cflmyandCursor ff252fd469 feat(web): land Artifact serve/endpoint path and retire compose golds
Wire data_source into Document render, register Endpoint handlers via
run_artifact, restore marqdo-blog as an Artifact site, and replace old
compose_* web golds with ADR 0007 fixtures and docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 11:36:45 +08:00

25 lines
507 B
Markdown

---
title: web.use middleware smoke
description: First-class middleware via web.use (replaces configure junk drawer).
import web:ext/web/web.mq.md
---
# main
`headers` =
| header | value |
|--------|-------|
| X-Content-Type-Options | nosniff |
| X-Frame-Options | DENY |
**pg = > web.page title="use-smoke"**
**app = > web.app page=`pg`**
**app = > web.use app=`app` middleware=`headers`**
**mw = [middleware](app)**
**sec = [security](mw)**
1. `sec`
> print text=use-ok
2. *
> print text=use-fail