WeChat.Plug.HubExposer (wechat v0.9.0) View Source

用于 Hub 暴露 token 等

将下面的代码加到 router 里面:

plug :basic_auth, username: "hello", password: "secret"

get "/hub/expose/:store_id/:store_key", WeChat.Plug.HubExposer, clients: [ClientsA, ...]