Files
marqdo/plugins/web/internal/httpx/helpers_test.go
T
cflmyandCursor e20cf8b386 feat(web): serve upload, WS, proxy, and gallery on Go listen
Mount media/ws/proxy/invoke routes in httpx, force gold onto Go via
MARQDO_WEB_PLUGIN, and case-fold middleware header checks so all seven
web live golds pass against libweb.so.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-10 20:52:29 +08:00

13 lines
267 B
Go

package httpx
import "testing"
func TestGoMuxPattern(t *testing.T) {
if got := goMuxPattern("/_media/{*key}"); got != "/_media/{key...}" {
t.Fatalf("got %q", got)
}
if got := goMuxPattern("/post/{slug}"); got != "/post/{slug}" {
t.Fatalf("got %q", got)
}
}