Skip to content

Commit

Permalink
chore: log any body to check if emails are coming in!
Browse files Browse the repository at this point in the history
  • Loading branch information
ydennisy committed Apr 27, 2024
1 parent a9f1b40 commit 92007aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
from typing import List, Any

from fastapi import FastAPI, HTTPException, Depends
from fastapi import FastAPI, HTTPException, Depends, Body
from fastapi.responses import StreamingResponse
from fastapi.middleware.cors import CORSMiddleware
from dotenv import load_dotenv
Expand Down Expand Up @@ -167,6 +167,6 @@ async def post_index_route(payload: PageCreate, user=Depends(get_current_user)):


@app.post("/api/email")
async def post_index_route(payload: Email):
async def post_index_route(payload: Any = Body(None)):
print(payload)
return "OK"

0 comments on commit 92007aa

Please sign in to comment.