generated from hjess/PythonTemplateProject
This commit is contained in:
@@ -2,6 +2,7 @@ from fastapi import FastAPI
|
||||
from contextlib import asynccontextmanager
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
|
||||
import app
|
||||
from app.controllers.route_to_web import RouteToWeb
|
||||
from app.services.markdown_processor import MarkdownProcessor
|
||||
from app.services.metadata_processor import MetadataProcessor
|
||||
@@ -68,6 +69,10 @@ class Application:
|
||||
"""Return the FastAPI app instance."""
|
||||
return self.app
|
||||
|
||||
@app.get("/health")
|
||||
async def health(self):
|
||||
return {"status": "healthy"}
|
||||
|
||||
|
||||
application = Application()
|
||||
app = application.get_app()
|
||||
|
||||
Reference in New Issue
Block a user