Skip to content

Commit

Permalink
chore(worker): update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Gowee committed Nov 30, 2024
1 parent fd968af commit 35a306b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ It leverages the [Aho-Corasick](https://github.com/daac-tools/daachorse) algorit

🐍 **Python package w/ wheels via PyO3**: `pip install zhconv-rs` or `pip install zhconv-rs-opencc` (with rulesets from OpenCC)

🧩 **API demo**: https://zhconv.bamboo.workers.dev
<a href="https://deploy.workers.cloudflare.com/?url=https://github.com/gowee/zhconv-rs">
<img src="https://deploy.workers.cloudflare.com/button" align="right" alt="Deploy to Cloudflare Workers">
</a>

🧩 **API demo**: https://zhconv.bamboo.workers.dev

<details open>
<summary>Python snippet</summary>

Expand Down
10 changes: 5 additions & 5 deletions worker/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ ENDPOINTS:

1. POST /convert/{target}
Convert Chinese text between variants

Path Parameters:
- target: Variant type (zh-{hans, hant, tw, hk, cn})

Query Parameters:
- wikitext: boolean (optional) - Set to true to handle WikiText markup

Headers:
- Authorization: Bearer token (optional unless TOKEN env var is set)

Request Body:
- Plain text to be converted

Response:
- 200: Converted text
- 401: Unauthorized (if token validation fails)
Expand Down

0 comments on commit 35a306b

Please sign in to comment.