25 lines
526 B
Python
25 lines
526 B
Python
from fastapi import FastAPI
|
|
|
|
from .config import settings
|
|
from .routes import router as microsoft365_router
|
|
|
|
app = FastAPI(
|
|
title=settings.app_name,
|
|
version=settings.app_version,
|
|
root_path=settings.root_path
|
|
)
|
|
app.include_router(microsoft365_router)
|
|
|
|
@app.get("/health")
|
|
def health():
|
|
return {"status": "ok"}
|
|
|
|
@app.get("/version")
|
|
def version():
|
|
return {
|
|
"app": settings.app_name,
|
|
"version": settings.app_version,
|
|
"language": "python",
|
|
"root_path": settings.root_path
|
|
}
|