mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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>
15 lines
366 B
Python
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'),
|
|
]
|