diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/urls.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/urls.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py index 673d9ae967..7f8489d3aa 100644 --- a/bitbake/lib/toaster/toastergui/urls.py +++ b/bitbake/lib/toaster/toastergui/urls.py @@ -6,10 +6,9 @@ # SPDX-License-Identifier: GPL-2.0-only # -from django.conf.urls import include, url -from django.views.generic import RedirectView, TemplateView +from django.urls import re_path as url +from django.views.generic import RedirectView -from django.http import HttpResponseBadRequest from toastergui import tables from toastergui import buildtables from toastergui import typeaheads @@ -96,6 +95,7 @@ urlpatterns = [ # project URLs url(r'^newproject/$', views.newproject, name='newproject'), + url(r'^cmdline/$', views.CommandLineBuilds.as_view(), name='cmdlines'), url(r'^projects/$', tables.ProjectsTable.as_view(template_name="projects-toastertable.html"), name='all-projects'), @@ -207,8 +207,7 @@ urlpatterns = [ url(r'^js-unit-tests/$', views.jsunittests, name='js-unit-tests'), # image customisation functionality - url(r'^xhr_customrecipe/(?P<recipe_id>\d+)' - '/packages/(?P<package_id>\d+|)$', + url(r'^xhr_customrecipe/(?P<recipe_id>\d+)/packages/(?P<package_id>\d+|)$', api.XhrCustomRecipePackages.as_view(), name='xhr_customrecipe_packages'), |