mirror of
https://github.com/a-mayb3/Kanban_clone_backend.git
synced 2026-03-21 10:05:38 +01:00
Removed superfluous tasks routers since tasks depend on projects
This commit is contained in:
parent
e3be049870
commit
57a6ec2676
1 changed files with 0 additions and 16 deletions
|
|
@ -1,16 +0,0 @@
|
||||||
from typing import List
|
|
||||||
from schemas.tasks import TaskBase
|
|
||||||
from fastapi import APIRouter, HTTPException, Depends
|
|
||||||
|
|
||||||
from database import db_dependency
|
|
||||||
|
|
||||||
import models
|
|
||||||
|
|
||||||
router = APIRouter(prefix="/tasks", tags=["tasks"])
|
|
||||||
|
|
||||||
# """Get tasks from a specified project"""
|
|
||||||
# @router.get("/from_project/{project_id}", response_model=List[TaskBase])
|
|
||||||
# def read_tasks_from_project(project_id: int, db: db_dependency):
|
|
||||||
# db_tasks = db.query(models.Task).filter(models.Task.project_id == project_id).all()
|
|
||||||
# return db_tasks
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue