added login page and started integrated of security

This commit is contained in:
GotthardG
2024-12-03 23:01:38 +01:00
parent 1798c480f6
commit 0d1374ded7
8 changed files with 302 additions and 101 deletions

View File

@ -5,8 +5,7 @@ from fastapi.middleware.cors import CORSMiddleware
from app import ssl_heidi
from pathlib import Path
from app.routers import address, contact, proposal, dewar, shipment, puck, spreadsheet, logistics
from app.routers import address, contact, proposal, dewar, shipment, puck, spreadsheet, logistics, auth
from app.database import Base, engine, SessionLocal, load_sample_data
app = FastAPI()
@ -40,6 +39,7 @@ def on_startup():
# Include routers with correct configuration
app.include_router(auth.router, prefix="/auth", tags=["auth"])
app.include_router(contact.router, prefix="/contacts", tags=["contacts"])
app.include_router(address.router, prefix="/addresses", tags=["addresses"])
app.include_router(proposal.router, prefix="/proposals", tags=["proposals"])