Skip to content

Commit

Permalink
Add test endpoint to auth calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
DEENUU1 committed Jan 23, 2024
1 parent 374f647 commit e67bedb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/routers/health.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from fastapi import APIRouter
from ai.integration.google_calendar import Calendar


router = APIRouter(
prefix="",
Expand All @@ -9,3 +11,11 @@
@router.get("/health", tags=["health"])
def health():
return {"status": "okk"}


@router.get("/calendar", tags=["calendar"])
def calendar():
c = Calendar()
c.get_all_events()

return {"status": "okk"}

0 comments on commit e67bedb

Please sign in to comment.