base logic
This commit is contained in:
27
src/api/v1/tasks.py
Normal file
27
src/api/v1/tasks.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from fastapi import APIRouter
|
||||
|
||||
router = APIRouter(prefix="/tasks", tags=["Tasks"])
|
||||
|
||||
|
||||
@router.get("/")
|
||||
async def get_tasks(): ...
|
||||
|
||||
|
||||
@router.get("/{task_id}")
|
||||
async def get_task_id(task_id: int): ...
|
||||
|
||||
|
||||
@router.post("/")
|
||||
async def post_task(): ...
|
||||
|
||||
|
||||
@router.put("/{task_id}")
|
||||
async def put_task(task_id: int): ...
|
||||
|
||||
|
||||
@router.patch("/{task_id}")
|
||||
async def patch_task(task_id: int): ...
|
||||
|
||||
|
||||
@router.delete("/{task_id}")
|
||||
async def delete_task(task_id: int): ...
|
||||
Reference in New Issue
Block a user