This commit is contained in:
Hossin Asaadi
2022-11-10 15:08:27 -05:00
parent 3faf7bb303
commit 7fbd7c24ca
6 changed files with 80 additions and 16 deletions

View File

@@ -84,6 +84,7 @@ type Server struct {
index *controller.IndexController
server *controller.ServerController
xui *controller.XUIController
api *controller.APIController
xrayService service.XrayService
settingService service.SettingService
@@ -206,6 +207,7 @@ func (s *Server) initRouter() (*gin.Engine, error) {
s.index = controller.NewIndexController(g)
s.server = controller.NewServerController(g)
s.xui = controller.NewXUIController(g)
s.api = controller.NewAPIController(g)
return engine, nil
}