mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 00:20:43 -04:00
Initialise clients outside the app
This avoids the annoying problem where you can’t import a client unless the app has already been initialised.
This commit is contained in:
@@ -30,3 +30,6 @@ class ApiKeyApiClient(NotifyAdminAPIClient):
|
||||
return self.post(
|
||||
url='/service/{0}/api-key/revoke/{1}'.format(service_id, key_id),
|
||||
data=data)
|
||||
|
||||
|
||||
api_key_api_client = ApiKeyApiClient()
|
||||
|
||||
Reference in New Issue
Block a user