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>
25 lines
507 B
Markdown
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
|