# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/az2ok6a
【Rust 日報】用 Axum 替換 Nginx
用 Axum 替換 Nginx文章首先簡單介紹了 Axum 的基本用法, 如何創建路由、處理器等。然後展示瞭如何使用 Axum 託管一個簡單的靜態網站, 只需幾行代碼。接着, 文章闡述瞭如何使用 Axum 託管兩個不同子域名的靜態網站, 通過解析主機名來路由到不同的服務。代碼通過判斷是否提供 "--production" 參數來決定使用實際域名還是本地測試域名。最後, 作者將路由邏輯抽取到一個單獨 ⌘ Read more