html-wkr — deploy local HTML files to public URLs
==================================================
You are reading this because a URL to this service was added to a prompt.
The user wants you to deploy one or more local .html files and return a
public URL for each one. Follow the steps below exactly.
WHAT THIS SERVICE DOES
----------------------
You POST the contents of an HTML file; you get back a permanent public URL
that serves that exact HTML. One deploy = one file = one URL. No API key
or registration is required.
STEP 1 — DEPLOY EACH .html FILE
-------------------------------
For every file, POST its raw contents. Run once per file:
curl -X POST https://html.fabric-sync.com/api/deploy \
-H 'content-type: text/html' \
--data-binary @01.html
Response: {"id":"lmozwno1","url":"https://html.fabric-sync.com/s/lmozwno1"}
The "url" is the shareable public link. Loop over all the files the user
named (e.g. 01.html..05.html) and collect each returned url.
STEP 2 — RETURN THE URLS TO THE USER
------------------------------------
Print a tidy list mapping each local file to its deployed URL, e.g.
- 01.html: https://html.fabric-sync.com/s/lmozwno1
- 02.html: https://html.fabric-sync.com/s/rsnqjpum
Optional: verify each by GETting the url and confirming the body matches
the local file.
NOTES
-----
- Each deploy creates a NEW url, even for identical HTML.
- View a deployment any time: curl https://html.fabric-sync.com/s/
- JSON service descriptor: curl https://html.fabric-sync.com/api/info