Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -47,6 +47,11 @@ async def add_focus_history(request: FocusHistoryRequest):
|
|
47 |
user_ref.set({"focus_history": focus_history}, merge=True)
|
48 |
return {"message": "Thêm lịch sử focus thành công"}
|
49 |
|
|
|
|
|
|
|
|
|
|
|
50 |
# API lấy dữ liệu người dùng
|
51 |
@app.get("/get_user_data")
|
52 |
async def get_user_data(user_id: str):
|
|
|
47 |
user_ref.set({"focus_history": focus_history}, merge=True)
|
48 |
return {"message": "Thêm lịch sử focus thành công"}
|
49 |
|
50 |
+
@app.route('/')
|
51 |
+
def home():
|
52 |
+
return jsonify({"message": "Welcome to the Recommendation API!"})
|
53 |
+
|
54 |
+
|
55 |
# API lấy dữ liệu người dùng
|
56 |
@app.get("/get_user_data")
|
57 |
async def get_user_data(user_id: str):
|