Skip to content

Commit ece4844

Browse files
committed
Add root API route
1 parent 7f42ced commit ece4844

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

backend/app/main.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
allow_headers=["*"],
1919
)
2020

21+
@app.get("/")
22+
def root():
23+
return {
24+
"service": "MathCodeLab Certificate Verification API",
25+
"status": "running",
26+
"health": "/health",
27+
"docs": "/docs"
28+
}
29+
2130
# Dependency
2231
get_db = database.get_db
2332

0 commit comments

Comments
 (0)