Ali2206 commited on
Commit
6f69a7e
·
1 Parent(s): 374f911

Add AIAutomation to automatic router loop

Browse files
Files changed (1) hide show
  1. server.py +2 -5
server.py CHANGED
@@ -69,6 +69,7 @@ except Exception as e:
69
  # Additional prefixed routers
70
  for mod_path, name in (
71
  ("AIAccessibility.app.main", "access_router"),
 
72
  ("AIStrategy.app.main", "strategy_router"),
73
  ("AIFit.app.main", "fit_router"),
74
  ("AIDual.app.main", "dual_router"),
@@ -105,11 +106,7 @@ try:
105
  except Exception:
106
  pass
107
 
108
- try:
109
- from AIAutomation.app.main import router as automation_router # type: ignore
110
- app.include_router(automation_router)
111
- except Exception:
112
- pass
113
 
114
  try:
115
  from AIHealthcare.app.main import router as healthcare_router # type: ignore
 
69
  # Additional prefixed routers
70
  for mod_path, name in (
71
  ("AIAccessibility.app.main", "access_router"),
72
+ ("AIAutomation.app.main", "automation_router"),
73
  ("AIStrategy.app.main", "strategy_router"),
74
  ("AIFit.app.main", "fit_router"),
75
  ("AIDual.app.main", "dual_router"),
 
106
  except Exception:
107
  pass
108
 
109
+ # AIAutomation is now included in the loop above
 
 
 
 
110
 
111
  try:
112
  from AIHealthcare.app.main import router as healthcare_router # type: ignore