mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05: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:
@@ -4,7 +4,6 @@ from datetime import datetime
|
||||
|
||||
import botocore
|
||||
from flask import abort, current_app, jsonify, request
|
||||
from notifications_utils.recipients import try_validate_and_format_phone_number
|
||||
|
||||
from app import api_user, authenticated_service, document_download_client, encryption
|
||||
from app.celery.tasks import save_api_email, save_api_sms
|
||||
@@ -40,6 +39,7 @@ from app.v2.notifications.notification_schemas import (
|
||||
post_sms_request,
|
||||
)
|
||||
from app.v2.utils import get_valid_json
|
||||
from notifications_utils.recipients import try_validate_and_format_phone_number
|
||||
|
||||
|
||||
@v2_notification_blueprint.route("/<notification_type>", methods=["POST"])
|
||||
|
||||
Reference in New Issue
Block a user