mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-29 15:14:06 -05:00
* move badge * fix add individual ingredient * fix redirect issue Co-authored-by: hay-kot <hay-kot@pm.me>
35 lines
693 B
Python
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
|