aboutsummaryrefslogtreecommitdiffstats
path: root/tiddlers/files API demo.tid
diff options
context:
space:
mode:
Diffstat (limited to 'tiddlers/files API demo.tid')
-rw-r--r--tiddlers/files API demo.tid51
1 files changed, 0 insertions, 51 deletions
diff --git a/tiddlers/files API demo.tid b/tiddlers/files API demo.tid
deleted file mode 100644
index dce6e46..0000000
--- a/tiddlers/files API demo.tid
+++ /dev/null
@@ -1,51 +0,0 @@
-created: 20260726073547121
-modified: 20260726085801292
-tags: tiddlywiki
-title: files API demo
-type: text/vnd.tiddlywiki
-
-\procedure store-file-list()
-<$action-setfield
- $tiddler="$:/temp/files-list"
- text=<<data>>
- type="application/json"
-/>
-\end
-
-<$button>
- <$action-sendmessage
- $message="tm-http-request"
- url="./api/files"
- method="GET"
- oncompletion=<<store-file-list>>
- />
- 刷新文件列表
-</$button>
-
-<pre><$text text={{$:/temp/files-list}}/></pre>
-
-[img[./files/photo_2026-07-26_11-10-12.jpg]]
-
-
-```caddyfile
-example.com {
- encode zstd gzip
-
- @api path /api/*
- reverse_proxy @api localhost:3000
-
- header {
- X-Content-Type-Options nosniff
- }
-}
-```
-
-```json5
-{
- // 支持注释
- unquoted: 'value',
- hexadecimal: 0xFF,
- infinity: Infinity,
- trailingComma: true,
-}
-``` \ No newline at end of file