wip: start KS-2 implementation
This commit is contained in:
+6
-2
@@ -1,17 +1,18 @@
|
||||
from fastapi import FastAPI
|
||||
from fastapi import FastAPI
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
from fastapi.templating import Jinja2Templates
|
||||
from fastapi.responses import RedirectResponse
|
||||
from pathlib import Path
|
||||
|
||||
# Import routers
|
||||
from app.routers import projects, boq as boq_router, daily_reports, agreements
|
||||
from app.routers import projects, boq as boq_router, daily_reports, agreements, ks2
|
||||
|
||||
# Import models to ensure they're registered
|
||||
from app.models import project as project_models, boq as boq_models
|
||||
from app.models import daily_report as daily_report_models
|
||||
from app.models import work_journal as work_journal_models
|
||||
from app.models import agreement as agreement_models
|
||||
from app.models import ks2 as ks2_models
|
||||
|
||||
# Initialize database
|
||||
from app.database.database import engine
|
||||
@@ -41,6 +42,7 @@ app.include_router(projects.router, prefix="/projects", tags=["projects"])
|
||||
app.include_router(boq_router.router, prefix="/boq", tags=["boq"])
|
||||
app.include_router(daily_reports.router, prefix="/projects", tags=["daily-reports"])
|
||||
app.include_router(agreements.router, prefix="/projects", tags=["agreements"])
|
||||
app.include_router(ks2.router, prefix="/projects", tags=["ks2"])
|
||||
|
||||
@app.get("/", include_in_schema=False)
|
||||
async def read_root():
|
||||
@@ -53,3 +55,5 @@ async def health_check():
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
uvicorn.run(app, host="127.0.0.1", port=8000)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user