feat:add restore project
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user