Sunil Mohan Adapa a7eb5e8f0e
power: Use AppView for app page
Tests:

- Enable/disable button is not shown.

- Diagnostics menu item is not shown.

- If apt is busy a warning message is shown.

- Restart and Shutdown buttons are shown and work.

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

15 lines
366 B
Python

# SPDX-License-Identifier: AGPL-3.0-or-later
"""
URLs for the power module.
"""
from django.urls import re_path
from . import views
urlpatterns = [
re_path(r'^sys/power/$', views.PowerAppView.as_view(), name='index'),
re_path(r'^sys/power/restart$', views.restart, name='restart'),
re_path(r'^sys/power/shutdown$', views.shutdown, name='shutdown'),
]