Files
NetMapper2026/agent/app/main.py
T

21 lines
560 B
Python
Raw Normal View History

from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.routers.health import router as health_router
from app.routers.runtime import router as runtime_router
from app.routers.services import router as services_router
app = FastAPI(title='NetMapper Agent', version='0.1.0')
app.add_middleware(
CORSMiddleware,
allow_origins=['*'],
allow_credentials=True,
allow_methods=['*'],
allow_headers=['*'],
)
app.include_router(health_router)
app.include_router(runtime_router)
app.include_router(services_router)