forked from indymedia/epicyon
Comment
parent
4a34ee0e80
commit
fac9296caf
|
@ -5814,6 +5814,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return json.loads(messageBytes)
|
return json.loads(messageBytes)
|
||||||
|
|
||||||
def _cryptoAPI(self, path: str, authorized: bool) -> None:
|
def _cryptoAPI(self, path: str, authorized: bool) -> None:
|
||||||
|
"""POST or GET with the crypto API
|
||||||
|
"""
|
||||||
if authorized and path.startswith('/api/v1/crypto/keys/upload'):
|
if authorized and path.startswith('/api/v1/crypto/keys/upload'):
|
||||||
if not self.authorizedNickname:
|
if not self.authorizedNickname:
|
||||||
self._400()
|
self._400()
|
||||||
|
|
Loading…
Reference in New Issue