first commit
This commit is contained in:
13
api/main.py
13
api/main.py
@@ -131,7 +131,14 @@ def health_check():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
for module in ROUTE_MODULES:
|
||||
if hasattr(module, "register"):
|
||||
module.register(app)
|
||||
from api.routes import load_routes
|
||||
load_routes(app)
|
||||
|
||||
# Optional: load general plugins
|
||||
try:
|
||||
from plugins import load_plugins
|
||||
load_plugins(app)
|
||||
except ImportError:
|
||||
pass # plugins folder not present
|
||||
|
||||
app.run(host="0.0.0.0", port=5000)
|
||||
|
||||
Reference in New Issue
Block a user