arrondavide commited on
Commit
6cd9f43
·
1 Parent(s): ba9143f

Add root endpoint

Browse files
Files changed (1) hide show
  1. main.py +16 -0
main.py CHANGED
@@ -42,6 +42,22 @@ MODEL_PATH = os.environ.get("MODEL_PATH", "model_weights.pt")
42
  model = TranslationModel(model_path=MODEL_PATH)
43
 
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  @app.get("/api/health")
46
  async def health():
47
  return {
 
42
  model = TranslationModel(model_path=MODEL_PATH)
43
 
44
 
45
+ @app.get("/")
46
+ async def root():
47
+ return {
48
+ "name": "Meroni API",
49
+ "description": "EEG-to-fMRI brain mapping powered by AI",
50
+ "version": "0.1.0",
51
+ "endpoints": {
52
+ "POST /api/translate": "Upload EEG file, get 96-region brain map",
53
+ "GET /api/health": "Health check",
54
+ "GET /api/regions": "List all Harvard-Oxford atlas regions",
55
+ "GET /docs": "Interactive API documentation",
56
+ },
57
+ "website": "https://meroni.io",
58
+ }
59
+
60
+
61
  @app.get("/api/health")
62
  async def health():
63
  return {