Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # |
| 2 | # BitBake Toaster Implementation |
| 3 | # |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 4 | # Copyright (C) 2013-2017 Intel Corporation |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | # |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame^] | 6 | # SPDX-License-Identifier: GPL-2.0-only |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 7 | # |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 9 | from django.conf.urls import include, url |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | from django.views.generic import RedirectView, TemplateView |
| 11 | |
| 12 | from django.http import HttpResponseBadRequest |
| 13 | from toastergui import tables |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 14 | from toastergui import buildtables |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | from toastergui import typeaheads |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 16 | from toastergui import api |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 17 | from toastergui import widgets |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 18 | from toastergui import views |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 20 | urlpatterns = [ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | # landing page |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 22 | url(r'^landing/$', views.landing, name='landing'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 24 | url(r'^builds/$', |
| 25 | tables.AllBuildsTable.as_view(template_name="builds-toastertable.html"), |
| 26 | name='all-builds'), |
| 27 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 28 | # build info navigation |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 29 | url(r'^build/(?P<build_id>\d+)$', views.builddashboard, name="builddashboard"), |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 30 | url(r'^build/(?P<build_id>\d+)/tasks/$', |
| 31 | buildtables.BuildTasksTable.as_view( |
| 32 | template_name="buildinfo-toastertable.html"), |
| 33 | name='tasks'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 34 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 35 | url(r'^build/(?P<build_id>\d+)/task/(?P<task_id>\d+)$', views.task, name='task'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 36 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 37 | url(r'^build/(?P<build_id>\d+)/recipes/$', |
| 38 | buildtables.BuiltRecipesTable.as_view( |
| 39 | template_name="buildinfo-toastertable.html"), |
| 40 | name='recipes'), |
| 41 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 42 | url(r'^build/(?P<build_id>\d+)/recipe/(?P<recipe_id>\d+)/active_tab/(?P<active_tab>\d{1})$', views.recipe, name='recipe'), |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 43 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 44 | url(r'^build/(?P<build_id>\d+)/recipe/(?P<recipe_id>\d+)$', views.recipe, name='recipe'), |
| 45 | url(r'^build/(?P<build_id>\d+)/recipe_packages/(?P<recipe_id>\d+)$', views.recipe_packages, name='recipe_packages'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 46 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 47 | url(r'^build/(?P<build_id>\d+)/packages/$', |
| 48 | buildtables.BuiltPackagesTable.as_view( |
| 49 | template_name="buildinfo-toastertable.html"), |
| 50 | name='packages'), |
| 51 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 52 | url(r'^build/(?P<build_id>\d+)/package/(?P<package_id>\d+)$', views.package_built_detail, |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 53 | name='package_built_detail'), |
| 54 | url(r'^build/(?P<build_id>\d+)/package_built_dependencies/(?P<package_id>\d+)$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 55 | views.package_built_dependencies, name='package_built_dependencies'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 56 | url(r'^build/(?P<build_id>\d+)/package_included_detail/(?P<target_id>\d+)/(?P<package_id>\d+)$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 57 | views.package_included_detail, name='package_included_detail'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 58 | url(r'^build/(?P<build_id>\d+)/package_included_dependencies/(?P<target_id>\d+)/(?P<package_id>\d+)$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 59 | views.package_included_dependencies, name='package_included_dependencies'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 60 | url(r'^build/(?P<build_id>\d+)/package_included_reverse_dependencies/(?P<target_id>\d+)/(?P<package_id>\d+)$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 61 | views.package_included_reverse_dependencies, name='package_included_reverse_dependencies'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 62 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 63 | url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)$', |
| 64 | buildtables.InstalledPackagesTable.as_view( |
| 65 | template_name="target.html"), |
| 66 | name='target'), |
| 67 | |
| 68 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 69 | url(r'^dentries/build/(?P<build_id>\d+)/target/(?P<target_id>\d+)$', views.xhr_dirinfo, name='dirinfo_ajax'), |
| 70 | url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/dirinfo$', views.dirinfo, name='dirinfo'), |
| 71 | url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/dirinfo_filepath/_(?P<file_path>(?:/[^/\n]+)*)$', views.dirinfo, name='dirinfo_filepath'), |
| 72 | url(r'^build/(?P<build_id>\d+)/configuration$', views.configuration, name='configuration'), |
| 73 | url(r'^build/(?P<build_id>\d+)/configvars$', views.configvars, name='configvars'), |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 74 | url(r'^build/(?P<build_id>\d+)/buildtime$', |
| 75 | buildtables.BuildTimeTable.as_view( |
| 76 | template_name="buildinfo-toastertable.html"), |
| 77 | name='buildtime'), |
| 78 | |
| 79 | url(r'^build/(?P<build_id>\d+)/cputime$', |
| 80 | buildtables.BuildCPUTimeTable.as_view( |
| 81 | template_name="buildinfo-toastertable.html"), |
| 82 | name='cputime'), |
| 83 | |
| 84 | url(r'^build/(?P<build_id>\d+)/diskio$', |
| 85 | buildtables.BuildIOTable.as_view( |
| 86 | template_name="buildinfo-toastertable.html"), |
| 87 | name='diskio'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 88 | |
| 89 | # image information dir |
| 90 | url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/packagefile/(?P<packagefile_id>\d+)$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 91 | views.image_information_dir, name='image_information_dir'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 92 | |
| 93 | # build download artifact |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 94 | url(r'^build/(?P<build_id>\d+)/artifact/(?P<artifact_type>\w+)/id/(?P<artifact_id>\w+)', views.build_artifact, name="build_artifact"), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 95 | |
| 96 | # project URLs |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 97 | url(r'^newproject/$', views.newproject, name='newproject'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 98 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 99 | url(r'^projects/$', |
| 100 | tables.ProjectsTable.as_view(template_name="projects-toastertable.html"), |
| 101 | name='all-projects'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 102 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 103 | url(r'^project/(?P<pid>\d+)/$', views.project, name='project'), |
| 104 | url(r'^project/(?P<pid>\d+)/configuration$', views.projectconf, name='projectconf'), |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 105 | url(r'^project/(?P<pid>\d+)/builds/$', |
| 106 | tables.ProjectBuildsTable.as_view(template_name="projectbuilds-toastertable.html"), |
| 107 | name='projectbuilds'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 108 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 109 | url(r'^newproject_specific/(?P<pid>\d+)/$', views.newproject_specific, name='newproject_specific'), |
| 110 | url(r'^project_specific/(?P<pid>\d+)/$', views.project_specific, name='project_specific'), |
| 111 | url(r'^landing_specific/(?P<pid>\d+)/$', views.landing_specific, name='landing_specific'), |
| 112 | url(r'^landing_specific_cancel/(?P<pid>\d+)/$', views.landing_specific_cancel, name='landing_specific_cancel'), |
| 113 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 114 | # the import layer is a project-specific functionality; |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 115 | url(r'^project/(?P<pid>\d+)/importlayer$', views.importlayer, name='importlayer'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 116 | |
| 117 | # the table pages that have been converted to ToasterTable widget |
| 118 | url(r'^project/(?P<pid>\d+)/machines/$', |
| 119 | tables.MachinesTable.as_view(template_name="generic-toastertable-page.html"), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 120 | name="projectmachines"), |
| 121 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 122 | url(r'^project/(?P<pid>\d+)/softwarerecipes/$', |
| 123 | tables.SoftwareRecipesTable.as_view(template_name="generic-toastertable-page.html"), |
| 124 | name="projectsoftwarerecipes"), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 125 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 126 | url(r'^project/(?P<pid>\d+)/images/$', |
| 127 | tables.ImageRecipesTable.as_view(template_name="generic-toastertable-page.html"), name="projectimagerecipes"), |
| 128 | |
| 129 | url(r'^project/(?P<pid>\d+)/customimages/$', |
| 130 | tables.CustomImagesTable.as_view(template_name="generic-toastertable-page.html"), name="projectcustomimages"), |
| 131 | |
| 132 | url(r'^project/(?P<pid>\d+)/newcustomimage/$', |
| 133 | tables.NewCustomImagesTable.as_view(template_name="newcustomimage.html"), |
| 134 | name="newcustomimage"), |
| 135 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 136 | url(r'^project/(?P<pid>\d+)/layers/$', |
| 137 | tables.LayersTable.as_view(template_name="generic-toastertable-page.html"), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 138 | name="projectlayers"), |
| 139 | |
| 140 | url(r'^project/(?P<pid>\d+)/layer/(?P<layerid>\d+)$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 141 | views.layerdetails, name='layerdetails'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 142 | |
| 143 | url(r'^project/(?P<pid>\d+)/layer/(?P<layerid>\d+)/recipes/$', |
| 144 | tables.LayerRecipesTable.as_view(template_name="generic-toastertable-page.html"), |
| 145 | { 'table_name': tables.LayerRecipesTable.__name__.lower(), |
| 146 | 'title' : 'All recipes in layer' }, |
| 147 | name=tables.LayerRecipesTable.__name__.lower()), |
| 148 | |
| 149 | url(r'^project/(?P<pid>\d+)/layer/(?P<layerid>\d+)/machines/$', |
| 150 | tables.LayerMachinesTable.as_view(template_name="generic-toastertable-page.html"), |
| 151 | { 'table_name': tables.LayerMachinesTable.__name__.lower(), |
| 152 | 'title' : 'All machines in layer' }, |
| 153 | name=tables.LayerMachinesTable.__name__.lower()), |
| 154 | |
| 155 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 156 | url(r'^project/(?P<pid>\d+)/distros/$', |
| 157 | tables.DistrosTable.as_view(template_name="generic-toastertable-page.html"), |
| 158 | name="projectdistros"), |
| 159 | |
| 160 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 161 | url(r'^project/(?P<pid>\d+)/customrecipe/(?P<custrecipeid>\d+)/selectpackages/$', |
| 162 | tables.SelectPackagesTable.as_view(), name="recipeselectpackages"), |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 163 | |
| 164 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 165 | url(r'^project/(?P<pid>\d+)/customrecipe/(?P<custrecipeid>\d+)$', |
| 166 | tables.SelectPackagesTable.as_view(template_name="customrecipe.html"), |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 167 | name="customrecipe"), |
| 168 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 169 | url(r'^project/(?P<pid>\d+)/customrecipe/(?P<recipe_id>\d+)/download$', |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 170 | views.customrecipe_download, |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 171 | name="customrecipedownload"), |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 172 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 173 | url(r'^project/(?P<pid>\d+)/recipe/(?P<recipe_id>\d+)$', |
| 174 | tables.PackagesTable.as_view(template_name="recipedetails.html"), |
| 175 | name="recipedetails"), |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 176 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 177 | # typeahead api end points |
| 178 | url(r'^xhr_typeahead/(?P<pid>\d+)/layers$', |
| 179 | typeaheads.LayersTypeAhead.as_view(), name='xhr_layerstypeahead'), |
| 180 | url(r'^xhr_typeahead/(?P<pid>\d+)/machines$', |
| 181 | typeaheads.MachinesTypeAhead.as_view(), name='xhr_machinestypeahead'), |
| 182 | url(r'^xhr_typeahead/(?P<pid>\d+)/recipes$', |
| 183 | typeaheads.RecipesTypeAhead.as_view(), name='xhr_recipestypeahead'), |
| 184 | url(r'^xhr_typeahead/projects$', |
| 185 | typeaheads.ProjectsTypeAhead.as_view(), name='xhr_projectstypeahead'), |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 186 | url(r'^xhr_typeahead/gitrev$', |
| 187 | typeaheads.GitRevisionTypeAhead.as_view(), |
| 188 | name='xhr_gitrevtypeahead'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 189 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 190 | url(r'^xhr_typeahead/(?P<pid>\d+)/distros$', |
| 191 | typeaheads.DistrosTypeAhead.as_view(), name='xhr_distrostypeahead'), |
| 192 | |
| 193 | url(r'^xhr_testreleasechange/(?P<pid>\d+)$', views.xhr_testreleasechange, |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 194 | name='xhr_testreleasechange'), |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 195 | url(r'^xhr_configvaredit/(?P<pid>\d+)$', views.xhr_configvaredit, |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 196 | name='xhr_configvaredit'), |
| 197 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 198 | url(r'^xhr_layer/(?P<pid>\d+)/(?P<layerversion_id>\d+)$', |
| 199 | api.XhrLayer.as_view(), |
| 200 | name='xhr_layer'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 201 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 202 | url(r'^xhr_layer/(?P<pid>\d+)$', |
| 203 | api.XhrLayer.as_view(), |
| 204 | name='xhr_layer'), |
| 205 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 206 | # JS Unit tests |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 207 | url(r'^js-unit-tests/$', views.jsunittests, name='js-unit-tests'), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 208 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 209 | # image customisation functionality |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 210 | url(r'^xhr_customrecipe/(?P<recipe_id>\d+)' |
| 211 | '/packages/(?P<package_id>\d+|)$', |
| 212 | api.XhrCustomRecipePackages.as_view(), |
| 213 | name='xhr_customrecipe_packages'), |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 214 | |
| 215 | url(r'^xhr_customrecipe/(?P<recipe_id>\d+)/packages/$', |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 216 | api.XhrCustomRecipePackages.as_view(), |
| 217 | name='xhr_customrecipe_packages'), |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 218 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 219 | url(r'^xhr_customrecipe/(?P<recipe_id>\d+)$', |
| 220 | api.XhrCustomRecipeId.as_view(), |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 221 | name='xhr_customrecipe_id'), |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 222 | |
| 223 | url(r'^xhr_customrecipe/', |
| 224 | api.XhrCustomRecipe.as_view(), |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 225 | name='xhr_customrecipe'), |
| 226 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 227 | url(r'^xhr_buildrequest/project/(?P<pid>\d+)$', |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 228 | api.XhrBuildRequest.as_view(), |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 229 | name='xhr_buildrequest'), |
| 230 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 231 | url(r'^xhr_projectupdate/project/(?P<pid>\d+)$', |
| 232 | api.XhrProjectUpdate.as_view(), |
| 233 | name='xhr_projectupdate'), |
| 234 | |
| 235 | url(r'^xhr_setdefaultimage/project/(?P<pid>\d+)$', |
| 236 | api.XhrSetDefaultImageUrl.as_view(), |
| 237 | name='xhr_setdefaultimage'), |
| 238 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 239 | url(r'xhr_project/(?P<project_id>\d+)$', |
| 240 | api.XhrProject.as_view(), |
| 241 | name='xhr_project'), |
| 242 | |
| 243 | url(r'xhr_build/(?P<build_id>\d+)$', |
| 244 | api.XhrBuild.as_view(), |
| 245 | name='xhr_build'), |
| 246 | |
| 247 | url(r'^mostrecentbuilds$', widgets.MostRecentBuildsView.as_view(), |
| 248 | name='most_recent_builds'), |
| 249 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 250 | # JSON data for aggregators |
| 251 | url(r'^api/builds$', views.json_builds, name='json_builds'), |
| 252 | url(r'^api/building$', views.json_building, name='json_building'), |
| 253 | url(r'^api/build/(?P<build_id>\d+)$', views.json_build, name='json_build'), |
| 254 | |
| 255 | # default redirection |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 256 | url(r'^$', RedirectView.as_view(url='landing', permanent=True)), |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 257 | ] |