19 lines
395 B
Python
19 lines
395 B
Python
from fastapi import FastAPI, Request, Response, Header
|
|
from fastapi.responses import HTMLResponse, JSONResponse
|
|
import time
|
|
|
|
app = FastAPI()
|
|
|
|
@app.get("/health")
|
|
def health():
|
|
return {
|
|
"status": "ok",
|
|
"service": "ml",
|
|
"version": "1.0.0",
|
|
"build_number": "1",
|
|
"version_state": "dev"
|
|
}
|
|
|
|
@app.get("/")
|
|
def root():
|
|
return {"message": "ML Service"} |