Added delete and get parent project routes
This commit is contained in:
parent
c63bd7a9ee
commit
b6f4eddb42
2 changed files with 16 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from app.database import (
|
||||
add_to_database,
|
||||
delete_from_database_where,
|
||||
get_from_database,
|
||||
get_from_database_where,
|
||||
get_from_database_where_id,
|
||||
|
|
@ -30,3 +31,7 @@ def get_with_parent(project_id: int):
|
|||
def create(project: Project):
|
||||
add_to_database(project)
|
||||
return project
|
||||
|
||||
|
||||
def delete(project_id: int):
|
||||
return delete_from_database_where(Project, Project.id, project_id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue