mirror of
https://github.com/enpaul/keyosk.git
synced 2024-12-26 01:33:33 +00:00
!fixup
This commit is contained in:
parent
8e7f3301d1
commit
1290a92ede
@ -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,
|
|
||||||
]
|
]
|
||||||
|
@ -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))
|
|
||||||
|
Loading…
Reference in New Issue
Block a user