forked from LiveCarta/CommentAutomation
Initial
This commit is contained in:
1
src/comment_automation/__init__.py
Normal file
1
src/comment_automation/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
"""CommentAutomation package."""
|
||||
14
src/comment_automation/main.py
Normal file
14
src/comment_automation/main.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from fastapi import FastAPI
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
app = FastAPI(title="CommentAutomation")
|
||||
|
||||
|
||||
class HealthResponse(BaseModel):
|
||||
status: str
|
||||
|
||||
|
||||
@app.get("/health", response_model=HealthResponse)
|
||||
def health() -> HealthResponse:
|
||||
return HealthResponse(status="ok")
|
||||
Reference in New Issue
Block a user