Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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']
|