mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-03 21:10:24 -04:00
This provides more room for expansion, and reduces the amount of arbitrary code in the __init__.py file for the new package.
14 lines
412 B
Python
14 lines
412 B
Python
from flask import render_template
|
|
|
|
from app import inbound_number_client
|
|
from app.main import main
|
|
from app.utils.user import user_is_platform_admin
|
|
|
|
|
|
@main.route('/inbound-sms-admin', methods=['GET', 'POST'])
|
|
@user_is_platform_admin
|
|
def inbound_sms_admin():
|
|
data = inbound_number_client.get_all_inbound_sms_number_service()
|
|
|
|
return render_template('views/inbound-sms-admin.html', inbound_num_list=data)
|