[sub] add backend

This commit is contained in:
Alireza Ahmadi
2023-03-27 15:06:22 +02:00
parent cee117e1e8
commit 9ae49ed562
3 changed files with 554 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ type Server struct {
server *controller.ServerController
xui *controller.XUIController
api *controller.APIController
sub *controller.SUBController
xrayService service.XrayService
settingService service.SettingService
@@ -208,6 +209,7 @@ func (s *Server) initRouter() (*gin.Engine, error) {
s.server = controller.NewServerController(g)
s.xui = controller.NewXUIController(g)
s.api = controller.NewAPIController(g)
s.sub = controller.NewSUBController(g)
return engine, nil
}