mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-03-14 10:44:13 +00:00
add get working directory endpoint
This commit is contained in:
parent
00badfbbf8
commit
1e901d1fcb
1 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
"""Common system information and settings"""
|
||||
# pylint: disable=too-few-public-methods
|
||||
import os
|
||||
import typing
|
||||
import strawberry
|
||||
from selfprivacy_api.graphql.common_types.dns import DnsRecord
|
||||
|
@ -135,3 +136,7 @@ class System:
|
|||
info: SystemInfo = SystemInfo()
|
||||
provider: SystemProviderInfo = strawberry.field(resolver=get_system_provider_info)
|
||||
busy: bool = False
|
||||
@strawberry.field
|
||||
def working_directory(self) -> str:
|
||||
"""Get working directory"""
|
||||
return os.getcwd()
|
||||
|
|
Loading…
Add table
Reference in a new issue