diff --git a/Student/API/main.py b/Student/API/main.py index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0693d41e34cbfaa84a2c19f05447d6ffe62b748e 100644 --- a/Student/API/main.py +++ b/Student/API/main.py @@ -0,0 +1,8 @@ +from fastapi import FastAPI + +app = FastAPI() + +@app.get("/") +def read_root(): + with open("message.txt", "r") as file: + return {"message": file.read()}