Initial raynet

This commit is contained in:
AppFactory Bot
2026-06-18 12:38:23 +00:00
commit 6529893f38
7 changed files with 578 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import os
from fastapi import FastAPI
APP_NAME = os.getenv("APP_NAME", "raynet")
APP_VERSION = os.getenv("APP_VERSION", "1.0.0")
ROOT_PATH = os.getenv("ROOT_PATH", "")
app = FastAPI(
title=APP_NAME,
version=APP_VERSION,
root_path=ROOT_PATH
)
@app.get("/health")
def health():
return {"status": "ok"}
@app.get("/version")
def version():
return {
"app": APP_NAME,
"version": APP_VERSION,
"language": "python",
"root_path": ROOT_PATH
}