feat:add restore project

This commit is contained in:
shahzeydyfah
2024-09-12 14:52:19 +03:30
parent 8c3b50265b
commit fc39ac3eac
2 changed files with 14 additions and 0 deletions
+5
View File
@@ -61,6 +61,11 @@ def update(_id: UUID, coding: ThisModel = Body(...)):
def delete(_id: UUID):
pass
@router.get('/restore/{_id}', response_model=bool, tags=_tag_base)
@shrink(repo.restore)
def restore(_id: UUID):
pass
@router.get('/{_id}', response_model=ThisModel, tags=_tag_base)
@shrink(repo.get)
def get(_id: UUID):