1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-12-26 01:33:33 +00:00
This commit is contained in:
Ethan Paul 2020-02-23 01:52:45 -05:00
parent 8e7f3301d1
commit 1290a92ede
2 changed files with 0 additions and 16 deletions

View File

@ -3,7 +3,6 @@ from typing import Type
from keyosk.resources._shared import KeyoskResource from keyosk.resources._shared import KeyoskResource
from keyosk.resources.account import AccountMultiResource from keyosk.resources.account import AccountMultiResource
from keyosk.resources.account import AccountPermissionResource
from keyosk.resources.account import AccountSingleResource from keyosk.resources.account import AccountSingleResource
from keyosk.resources.auth import AuthenticationResource from keyosk.resources.auth import AuthenticationResource
from keyosk.resources.blacklist import BlacklistResource from keyosk.resources.blacklist import BlacklistResource
@ -24,5 +23,4 @@ RESOURCES: List[Type[KeyoskResource]] = [
DomainAuditResource, DomainAuditResource,
AccountMultiResource, AccountMultiResource,
AccountSingleResource, AccountSingleResource,
AccountPermissionResource,
] ]

View File

@ -31,17 +31,3 @@ class AccountSingleResource(KeyoskResource):
def head(self, account_ref: str) -> ResponseTuple: def head(self, account_ref: str) -> ResponseTuple:
return self._head(self.get(account_ref)) return self._head(self.get(account_ref))
class AccountPermissionResource(KeyoskResource):
ROUTES = "/account/<string:account_ref>/permission"
def get(self, account_ref: str) -> ResponseTuple:
raise NotADirectoryError
def patch(self, account_ref: str) -> ResponseTuple:
raise NotADirectoryError
def head(self, account_ref: str) -> ResponseTuple:
return self._head(self.get(account_ref))