- Added backend routes for DEV Portal dashboard and workflow editor - Created frontend templates for portal and editor using Jinja2 - Integrated draw.io for workflow diagram editing and saving - Developed API endpoints for features, ideas, and workflows management - Established database schema for features, ideas, and workflows - Documented DEV Portal functionality, API endpoints, and database structure
20 lines
758 B
Python
20 lines
758 B
Python
from fastapi import APIRouter, Request
|
|
from fastapi.templating import Jinja2Templates
|
|
from fastapi.responses import HTMLResponse
|
|
|
|
router = APIRouter()
|
|
templates = Jinja2Templates(directory="app")
|
|
|
|
@router.get("/devportal", response_class=HTMLResponse)
|
|
async def devportal_dashboard(request: Request):
|
|
"""Render the DEV Portal dashboard"""
|
|
return templates.TemplateResponse("devportal/frontend/portal.html", {"request": request})
|
|
|
|
@router.get("/devportal/editor", response_class=HTMLResponse)
|
|
async def workflow_editor(request: Request, id: int = None):
|
|
"""Render the workflow editor with draw.io integration"""
|
|
return templates.TemplateResponse("devportal/frontend/editor.html", {
|
|
"request": request,
|
|
"workflow_id": id
|
|
})
|