tuan243 commited on
Commit
d25805f
·
verified ·
1 Parent(s): b1e7110

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -0
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):