Skip to content

Commit

Permalink
first empty stub
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Dec 9, 2024
1 parent 61c0ac8 commit 279ca39
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/edutap/wallet_google/handlers/fastapi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from ..models.callback import CallbackData
from .validate import verified_signed_message
from fastapi import HTTPException
from fastapi import Request
from fastapi import router
from fastapi.logger import logger


@router.post("/callback")
async def handle_callback(request: Request, callback_data: CallbackData):
callback_message = verified_signed_message(callback_data)
logger.debug(f"Got message {callback_message}")
# TODO: here we need to call a plugin (async best) to handle the callback
# and handle erross
return {"status": "success"}

0 comments on commit 279ca39

Please sign in to comment.