File size: 471 Bytes
053deef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from fastapi import FastAPI
import time
import os

app = FastAPI()

@app.get("/health")
def health():
    return {"status": "ok", "timestamp": time.time()}

@app.get("/api/info")
def get_info():
    return {
        "app": "WitNote",
        "version": "1.3.3",
        "platform": "Linux (VNC)",
        "vault_path": os.environ.get("VAULT_ROOT", "/home/user/vault")
    }

if __name__ == "__main__":
    import uvicorn
    uvicorn.run(app, host="127.0.0.1", port=7861)