feat: initialize microservice architecture with auth, api, realtime, copernicus, ml, and console modules
This commit is contained in:
19
ml/main.py
Normal file
19
ml/main.py
Normal file
@@ -0,0 +1,19 @@
|
||||
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"}
|
||||
Reference in New Issue
Block a user