Update ai-bot/api/routes.py
Browse files- ai-bot/api/routes.py +6 -0
ai-bot/api/routes.py
CHANGED
|
@@ -109,3 +109,9 @@ def sandbox_run(data: dict, user="default"):
|
|
| 109 |
@router.get("/system-alerts")
|
| 110 |
def system_alerts():
|
| 111 |
return {"alerts": scan_logs()}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
@router.get("/system-alerts")
|
| 110 |
def system_alerts():
|
| 111 |
return {"alerts": scan_logs()}
|
| 112 |
+
|
| 113 |
+
from services.project_service import create_project
|
| 114 |
+
|
| 115 |
+
@router.post("/create-project")
|
| 116 |
+
def create_project_api(data: dict):
|
| 117 |
+
return {"project": create_project(data["description"])}
|