mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 03:03:13 -04:00
33 lines
659 B
Python
33 lines
659 B
Python
|
|
from flask import (
|
||
|
|
render_template,
|
||
|
|
redirect,
|
||
|
|
session,
|
||
|
|
url_for,
|
||
|
|
request
|
||
|
|
)
|
||
|
|
|
||
|
|
from flask_login import login_required
|
||
|
|
from app.main import main
|
||
|
|
from app import inbound_number_client
|
||
|
|
from app.utils import user_has_permissions
|
||
|
|
|
||
|
|
|
||
|
|
@main.route('/inbound-sms-admin', methods=['GET', 'POST'])
|
||
|
|
@login_required
|
||
|
|
@user_has_permissions(admin_override=True)
|
||
|
|
def inbound_sms_admin():
|
||
|
|
#data = user_api_client.get_inboundsms_number_service()
|
||
|
|
data = inbound_number_client.get_inbound_sms_number_service()
|
||
|
|
|
||
|
|
# return jsonify(data)
|
||
|
|
|
||
|
|
return render_template('views/inbound_sms_admin.html',
|
||
|
|
inbound_num_list = data)
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|