kopia lustrzana https://github.com/bugout-dev/moonstream
Move dashboard id to params.
rodzic
456a821f54
commit
e66267563c
|
@ -252,6 +252,5 @@ class DashboardCreate(BaseModel):
|
|||
|
||||
|
||||
class DashboardUpdate(BaseModel):
|
||||
dashboard_id: Union[str, UUID]
|
||||
name: Optional[str]
|
||||
subscriptions: List[DashboardMeta] = Field(default_factory=list)
|
||||
|
|
|
@ -232,6 +232,7 @@ async def get_dashboard_handler(
|
|||
@router.put("/{dashboard_id}", tags=["dashboards"], response_model=BugoutResource)
|
||||
async def update_dashboard_handler(
|
||||
request: Request,
|
||||
dashboard_id: str,
|
||||
dashboard: data.DashboardUpdate
|
||||
) -> BugoutResource:
|
||||
"""
|
||||
|
|
Ładowanie…
Reference in New Issue