From 8b5fe0b018af70c5302966f1d3d4d9a1cdd82dad Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 12 Mar 2024 19:44:51 +0330 Subject: [subJson] add mux and direct Co-Authored-By: Alireza Ahmadi --- sub/subController.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sub/subController.go') diff --git a/sub/subController.go b/sub/subController.go index dc66c892..8fd39efa 100644 --- a/sub/subController.go +++ b/sub/subController.go @@ -26,6 +26,8 @@ func NewSUBController( rModel string, update string, jsonFragment string, + jsonMux string, + jsonRules string, ) *SUBController { sub := NewSubService(showInfo, rModel) a := &SUBController{ @@ -35,7 +37,7 @@ func NewSUBController( updateInterval: update, subService: sub, - subJsonService: NewSubJsonService(jsonFragment, sub), + subJsonService: NewSubJsonService(jsonFragment, jsonMux, jsonRules, sub), } a.initRouter(g) return a -- cgit v1.2.3