Files
mealie/mealie/routes/unit_and_foods/unit_routes.py
Hayden e95ca870b1 Add Database Layer for Recipe Scaling (#506)
* move badge

* fix add individual ingredient

* fix redirect issue

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-06-12 22:23:23 -08:00

35 lines
693 B
Python

from fastapi import APIRouter, Depends
from mealie.core.root_logger import get_logger
from mealie.routes.deps import get_current_user
router = APIRouter(prefix="/api/units", dependencies=[Depends(get_current_user)])
logger = get_logger()
@router.post("")
async def create_food():
""" Create food in the Database """
# Create food
pass
@router.get("/{id}")
async def get_food():
""" Get food from the Database """
# Get food
pass
@router.put("/{id}")
async def update_food():
""" Update food in the Database """
# Update food
pass
@router.delete("/{id}")
async def delete_food():
""" Delete food from the Database """
# Delete food
pass