[email] Delete unnecessary route

This commit is contained in:
maike 2020-07-06 20:10:20 +02:00 committed by dl6tom
parent b8ce2a4843
commit 72bbbb1847

View file

@ -42,14 +42,6 @@ hood_router = APIRouter()
mailbox_router = APIRouter()
"""
# get Email row?
@router.get('/')
async def test_read_all(hood=Depends(get_hood)):
return await Email.objects.filter(hood=hood).all()
"""
@hood_router.post('/', status_code=status.HTTP_201_CREATED)
async def email_create(hood=Depends(get_hood)):
try: