mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-31 13:16:38 +00:00
19 lines
387 B
Python
19 lines
387 B
Python
"""Groups"""
|
|
|
|
# pylint: disable=too-few-public-methods
|
|
import typing
|
|
import strawberry
|
|
|
|
from selfprivacy_api.graphql.common_types.groups import (
|
|
Group,
|
|
get_groups,
|
|
)
|
|
from selfprivacy_api.graphql import IsAuthenticated
|
|
|
|
|
|
@strawberry.type
|
|
class Groups:
|
|
all_groups: typing.List[Group] = strawberry.field(
|
|
permission_classes=[IsAuthenticated], resolver=get_groups
|
|
)
|