diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-12 19:14:51 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-12 19:14:51 +0300 |
| commit | 8b5fe0b018af70c5302966f1d3d4d9a1cdd82dad (patch) | |
| tree | 0beea2e09b894f4ca8c63bb5d09308d7bb4b048a /sub/subController.go | |
| parent | fc23af5db651b7a86252298862509635ace161b3 (diff) | |
[subJson] add mux and direct
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'sub/subController.go')
| -rw-r--r-- | sub/subController.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
