mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-26 17:23:50 -04:00
Localize notification_utils to the API
This changeset pulls in all of the notification_utils code directly into the API and removes it as an external dependency. We are doing this to cut down on operational maintenance of the project and will begin removing parts of it no longer needed for the API. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from flask import Blueprint, current_app, json, jsonify, request
|
||||
from notifications_utils.recipients import try_validate_and_format_phone_number
|
||||
|
||||
from app.celery import tasks
|
||||
from app.config import QueueNames
|
||||
@@ -9,6 +8,7 @@ from app.enums import ServicePermissionType
|
||||
from app.errors import InvalidRequest, register_errors
|
||||
from app.models import InboundSms
|
||||
from app.notifications.sns_handlers import sns_notification_handler
|
||||
from notifications_utils.recipients import try_validate_and_format_phone_number
|
||||
|
||||
receive_notifications_blueprint = Blueprint("receive_notifications", __name__)
|
||||
register_errors(receive_notifications_blueprint)
|
||||
|
||||
Reference in New Issue
Block a user