mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
fix(channel): add wechatoa webhook delivery and proxy config (#356)
Unify webhook handling across channel adapters and add the WeChat Official Account channel so inbound routing and replies work without platform-specific handlers. Add adapter-scoped proxy support and stable config field ordering so restricted network environments can deliver WeChat and Telegram messages reliably.
This commit is contained in:
@@ -2,7 +2,7 @@ package server
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestShouldSkipJWT_FeishuWebhookPaths(t *testing.T) {
|
||||
func TestShouldSkipJWT_ChannelWebhookPaths(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
cases := []struct {
|
||||
@@ -10,6 +10,7 @@ func TestShouldSkipJWT_FeishuWebhookPaths(t *testing.T) {
|
||||
want bool
|
||||
}{
|
||||
{path: "/channels/feishu/webhook/cfg-1", want: true},
|
||||
{path: "/channels/wechatoa/webhook/cfg-1", want: true},
|
||||
{path: "/channels/feishu/webhook", want: false},
|
||||
{path: "/api/channels/feishu/webhook", want: false},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user