KamalamSivakumar commited on
Commit
c8ffb23
·
verified ·
1 Parent(s): 4e4dcb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -32,6 +32,10 @@ class EventDetails(BaseModel):
32
  end: str # ISO format datetime
33
  timeZone: str | None = 'Asia/Kolkata'
34
 
 
 
 
 
35
  @app.post("/schedule")
36
  async def schedule_event(event_details: EventDetails):
37
  SCOPES = ['https://www.googleapis.com/auth/calendar']
 
32
  end: str # ISO format datetime
33
  timeZone: str | None = 'Asia/Kolkata'
34
 
35
+ @app.get("/")
36
+ async def root():
37
+ return {"message": "FastAPI Google Calendar Scheduler is running!"}
38
+
39
  @app.post("/schedule")
40
  async def schedule_event(event_details: EventDetails):
41
  SCOPES = ['https://www.googleapis.com/auth/calendar']