mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 08:16:51 -04:00
Add /services prefix to all service-related URLs
The URLs will be easier to parse if the parts are clearly labelled. This is a precursor to making a blueprint for all service-related URLs.
This commit is contained in:
@@ -35,7 +35,7 @@ message_templates = [
|
||||
]
|
||||
|
||||
|
||||
@main.route("/<int:service_id>/sms/send", methods=['GET', 'POST'])
|
||||
@main.route("/services/<int:service_id>/sms/send", methods=['GET', 'POST'])
|
||||
@login_required
|
||||
def sendsms(service_id):
|
||||
form = CsvUploadForm()
|
||||
@@ -65,7 +65,7 @@ def sendsms(service_id):
|
||||
service_id=service_id)
|
||||
|
||||
|
||||
@main.route("/<int:service_id>/sms/check", methods=['GET', 'POST'])
|
||||
@main.route("/services/<int:service_id>/sms/check", methods=['GET', 'POST'])
|
||||
@login_required
|
||||
def checksms(service_id):
|
||||
if request.method == 'GET':
|
||||
|
||||
Reference in New Issue
Block a user