Initial FastAPI template

This commit is contained in:
2026-05-20 08:51:50 +02:00
parent d4f6d27fb5
commit b23e63ca90
3 changed files with 35 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
from fastapi import FastAPI
APP_NAME = "Python FastAPI Template"
APP_VERSION = "1.0.0"
app = FastAPI(
title=APP_NAME,
version=APP_VERSION
)
@app.get("/health")
def health():
return {"status": "ok"}
@app.get("/version")
def version():
return {
"app": APP_NAME,
"version": APP_VERSION,
"language": "python"
}