mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
clean up
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
from flask import abort, has_request_context, request, current_app
|
from flask import abort, has_request_context, request
|
||||||
from flask_login import current_user
|
from flask_login import current_user
|
||||||
from notifications_python_client import __version__
|
from notifications_python_client import __version__
|
||||||
from notifications_python_client.base import BaseAPIClient
|
from notifications_python_client.base import BaseAPIClient
|
||||||
@@ -28,7 +28,6 @@ class NotifyAdminAPIClient(BaseAPIClient):
|
|||||||
self.route_secret = app.config['ROUTE_SECRET_KEY_1']
|
self.route_secret = app.config['ROUTE_SECRET_KEY_1']
|
||||||
|
|
||||||
def generate_headers(self, api_token):
|
def generate_headers(self, api_token):
|
||||||
# current_app.logger.info("Attempting to generate headers")
|
|
||||||
headers = {
|
headers = {
|
||||||
"Content-type": "application/json",
|
"Content-type": "application/json",
|
||||||
"Authorization": "Bearer {}".format(api_token),
|
"Authorization": "Bearer {}".format(api_token),
|
||||||
|
|||||||
Reference in New Issue
Block a user