diff --git a/main.py b/main.py new file mode 100644 index 0000000..23776ba --- /dev/null +++ b/main.py @@ -0,0 +1,38 @@ +from fastapi import FastAPI +from fastapi.responses import HTMLResponse + +app = FastAPI(title="TapTrack", description="RFID Student Attendance & Parent Notification System") + +@app.get("/", response_class=HTMLResponse) +def root(): + return """ + + + TapTrack + + + +
+

๐ŸŽ“ TapTrack

+

RFID Student Attendance & Parent Notification System

+
โœ… Running on Coolify
+

+

Built by Kibin ยท Powered by FastAPI

+
+ + + """ + +@app.get("/health") +def health(): + return {"status": "ok", "app": "TapTrack", "version": "0.1.0"} + +@app.get("/api/v1/ping") +def ping(): + return {"message": "pong", "service": "TapTrack API"}