20 lines
399 B
Python
20 lines
399 B
Python
from fastapi import FastAPI
|
|
|
|
def create_app() -> FastAPI:
|
|
app = FastAPI (
|
|
title='medical_info',
|
|
description='Medical Information Service',
|
|
version='1.0'
|
|
)
|
|
|
|
@app.get('/health')
|
|
async def health() -> str:
|
|
return 'ok'
|
|
|
|
|
|
from medical_info.routers import medical_cards, checkups
|
|
|
|
app.include_router(medical_cards.router)
|
|
app.include_router(checkups.router)
|
|
|
|
return app |