diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-11 15:44:24 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-11 18:10:11 +0300 |
| commit | 5b87b1253555b7e932f79bd86795e350f9f3de2e (patch) | |
| tree | 711ca9b226f2cf9d041db50f81c975913c76ea23 /sub/subController.go | |
| parent | 8908e8b16a3457c1353cec163a79cd82338be336 (diff) | |
[sub] JSON sub enhancement + minor changes
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'sub/subController.go')
| -rw-r--r-- | sub/subController.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sub/subController.go b/sub/subController.go index 8de5b5df..dc66c892 100644 --- a/sub/subController.go +++ b/sub/subController.go @@ -27,14 +27,15 @@ func NewSUBController( update string, jsonFragment string, ) *SUBController { + sub := NewSubService(showInfo, rModel) a := &SUBController{ subPath: subPath, subJsonPath: jsonPath, subEncrypt: encrypt, updateInterval: update, - subService: NewSubService(showInfo, rModel), - subJsonService: NewSubJsonService(jsonFragment), + subService: sub, + subJsonService: NewSubJsonService(jsonFragment, sub), } a.initRouter(g) return a |
