Sunil Mohan Adapa b970b72bb0
diagnostics: Use AppView for app page
Tests:

- Enable/disable button is not present.

- Diagnostics menu item is not present.

- Page shows 'Running diagnostics' button when diagnostics are not running.

- Page shows progress bar and results when diagnostics are running/completed.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:29:00 -04:00

16 lines
358 B
Python

# SPDX-License-Identifier: AGPL-3.0-or-later
"""
URLs for the Diagnostics module
"""
from django.urls import re_path
from . import views
urlpatterns = [
re_path(r'^sys/diagnostics/$', views.DiagnosticsView.as_view(),
name='index'),
re_path(r'^sys/diagnostics/(?P<app_id>[1-9a-z\-_]+)/$', views.diagnose_app,
name='app'),
]