Create views for organizing secrets in groups
This commit is contained in:
@ -10,6 +10,7 @@ from sshecret_admin.core.dependencies import AdminDependencies
|
||||
from sshecret_admin.services import AdminBackend
|
||||
from sshecret_admin.services.models import (
|
||||
ClientSecretGroup,
|
||||
ClientSecretGroupList,
|
||||
SecretCreate,
|
||||
SecretGroupCreate,
|
||||
SecretUpdate,
|
||||
@ -78,7 +79,7 @@ def create_router(dependencies: AdminDependencies) -> APIRouter:
|
||||
async def get_secret_groups(
|
||||
admin: Annotated[AdminBackend, Depends(dependencies.get_admin_backend)],
|
||||
filter_regex: Annotated[str | None, Query()] = None,
|
||||
) -> list[ClientSecretGroup]:
|
||||
) -> ClientSecretGroupList:
|
||||
"""Get secret groups."""
|
||||
return await admin.get_secret_groups(filter_regex)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user