main
Bob Mottram 2020-08-06 22:24:47 +01:00
parent 4a34ee0e80
commit fac9296caf
1 changed files with 2 additions and 0 deletions

View File

@ -5814,6 +5814,8 @@ class PubServer(BaseHTTPRequestHandler):
return json.loads(messageBytes)
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 not self.authorizedNickname:
self._400()