[subJson] add mux and direct

This commit is contained in:
Alireza Ahmadi
2024-03-12 12:24:01 +01:00
parent dc332b09fa
commit b22d1e082a
8 changed files with 177 additions and 8 deletions

View File

@@ -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