pull-request-validator / main_minimal_backup.py
Sgridda
trying lightweight model
487d58e
raw
history blame contribute delete
501 Bytes
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root():
return {"message": "Hello World! Service is running!"}
@app.get("/health")
def health():
return {"status": "ok", "service": "running"}
@app.post("/review")
def review(data: dict):
return {
"comments": [
{
"file_path": "test.py",
"line_number": 1,
"comment_text": "This looks good! Emergency service is working."
}
]
}