feat: domain details endpoint
Needs a response model to filter response data
This commit is contained in:
parent
a86047ec79
commit
2fe455ee81
1 changed files with 6 additions and 0 deletions
|
|
@ -137,3 +137,9 @@ async def event_reinstate(domain: str, db: db_dependency, event: int):
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
return {"status": "Event Un-ignored"}
|
return {"status": "Event Un-ignored"}
|
||||||
|
|
||||||
|
@router.get("/domain/details/{domain}")
|
||||||
|
async def domain_details(db: db_dependency, domain: str):
|
||||||
|
result = db.query(Domain).filter(Domain.domain==domain).first()
|
||||||
|
|
||||||
|
return result
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue