add active ,onwer in domain
This commit is contained in:
@@ -272,7 +272,7 @@ async def domain_details(
|
||||
@r.post("/domain", response_model=Domain, response_model_exclude_none=True)
|
||||
async def domain_create(
|
||||
request: Request,
|
||||
domain: DomainBase,
|
||||
domain: DomainIn,
|
||||
user=Depends(get_current_active_user),
|
||||
db=Depends(get_db),
|
||||
):
|
||||
@@ -287,7 +287,7 @@ async def domain_create(
|
||||
)
|
||||
async def domain_edit(
|
||||
request: Request,
|
||||
domain: DomainBase,
|
||||
domain: DomainIn,
|
||||
user=Depends(get_current_active_user),
|
||||
db=Depends(get_db),
|
||||
):
|
||||
@@ -312,7 +312,7 @@ async def domain_delete(
|
||||
|
||||
@r.get(
|
||||
"/domain",
|
||||
# response_model=List[Domain],
|
||||
response_model=List[Domain],
|
||||
response_model_exclude_none=True,
|
||||
)
|
||||
async def userdomain_details(
|
||||
|
||||
Reference in New Issue
Block a user