feat(factory): serve dashboard at root and create project repos refs NOISSUE

This commit is contained in:
2026-04-10 20:23:07 +02:00
parent 82e53a6651
commit 227ad1ad6f
12 changed files with 220 additions and 154 deletions

View File

@@ -6,7 +6,7 @@ This application uses FastAPI to:
2. Host NiceGUI frontend via ui.run_with()
The NiceGUI frontend provides:
1. Interactive dashboard at /show
1. Interactive dashboard at /
2. Real-time data visualization
3. Audit trail display
"""
@@ -149,14 +149,15 @@ def _resolve_n8n_api_url(explicit_url: str | None = None) -> str:
return ""
@app.get('/')
def read_root():
"""Root endpoint that returns service metadata."""
@app.get('/api')
def read_api_info():
"""Return service metadata for API clients."""
return {
'service': 'AI Software Factory',
'version': __version__,
'endpoints': [
'/',
'/api',
'/health',
'/generate',
'/projects',
@@ -217,6 +218,7 @@ async def generate_software(request: SoftwareRequest, db: DbSession):
response_data['tech_stack'] = request.tech_stack
response_data['project_root'] = result.get('project_root', str(_project_root(project_id)))
response_data['changed_files'] = result.get('changed_files', [])
response_data['repository'] = result.get('repository')
return {'status': result['status'], 'data': response_data}