mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-30 20:56:39 +00:00
feat: update schema
This commit is contained in:
parent
2cb7804ba6
commit
edfe82ac28
|
@ -26,6 +26,7 @@ from selfprivacy_api.graphql.mutations.backup_mutations import BackupMutations
|
||||||
|
|
||||||
from selfprivacy_api.graphql.queries.api_queries import Api
|
from selfprivacy_api.graphql.queries.api_queries import Api
|
||||||
from selfprivacy_api.graphql.queries.backup import Backup
|
from selfprivacy_api.graphql.queries.backup import Backup
|
||||||
|
from selfprivacy_api.graphql.queries.groups import Groups
|
||||||
from selfprivacy_api.graphql.queries.jobs import Job
|
from selfprivacy_api.graphql.queries.jobs import Job
|
||||||
from selfprivacy_api.graphql.queries.logs import LogEntry, Logs
|
from selfprivacy_api.graphql.queries.logs import LogEntry, Logs
|
||||||
from selfprivacy_api.graphql.queries.services import Services
|
from selfprivacy_api.graphql.queries.services import Services
|
||||||
|
@ -74,6 +75,11 @@ class Query:
|
||||||
"""Users queries"""
|
"""Users queries"""
|
||||||
return Users()
|
return Users()
|
||||||
|
|
||||||
|
@strawberry.field(permission_classes=[IsAuthenticated])
|
||||||
|
def groups(self) -> Groups:
|
||||||
|
"""Users queries"""
|
||||||
|
return Groups()
|
||||||
|
|
||||||
@strawberry.field(permission_classes=[IsAuthenticated])
|
@strawberry.field(permission_classes=[IsAuthenticated])
|
||||||
def storage(self) -> Storage:
|
def storage(self) -> Storage:
|
||||||
"""Storage queries"""
|
"""Storage queries"""
|
||||||
|
|
Loading…
Reference in a new issue