mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Remove ‘all services’ page
It’s not needed any more, because the platform admin page does the same thing better.
This commit is contained in:
@@ -24,7 +24,6 @@ from app.main.views import (
|
||||
api_keys,
|
||||
manage_users,
|
||||
invites,
|
||||
all_services,
|
||||
feedback,
|
||||
providers,
|
||||
platform_admin
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
from flask import render_template
|
||||
from flask_login import login_required
|
||||
|
||||
from app import service_api_client
|
||||
from app.main import main
|
||||
from app.utils import user_has_permissions
|
||||
from app.notify_client.service_api_client import ServicesBrowsableItem
|
||||
|
||||
|
||||
@main.route("/all-services")
|
||||
@login_required
|
||||
@user_has_permissions(None, admin_override=True)
|
||||
def show_all_services():
|
||||
services = [ServicesBrowsableItem(x) for x in service_api_client.get_services()['data']]
|
||||
return render_template('views/all-services.html', services=services)
|
||||
Reference in New Issue
Block a user