diff options
Diffstat (limited to 'bitbake/lib/toaster/toastermain/urls.py')
| -rw-r--r-- | bitbake/lib/toaster/toastermain/urls.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastermain/urls.py b/bitbake/lib/toaster/toastermain/urls.py index bb325596bb..6750bdf3aa 100644 --- a/bitbake/lib/toaster/toastermain/urls.py +++ b/bitbake/lib/toaster/toastermain/urls.py | |||
| @@ -20,9 +20,8 @@ | |||
| 20 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 20 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 21 | 21 | ||
| 22 | from django.conf.urls import patterns, include, url | 22 | from django.conf.urls import patterns, include, url |
| 23 | from django.views.generic import RedirectView | 23 | from django.views.generic import RedirectView, TemplateView |
| 24 | from django.views.decorators.cache import never_cache | 24 | from django.views.decorators.cache import never_cache |
| 25 | |||
| 26 | import bldcollector.views | 25 | import bldcollector.views |
| 27 | 26 | ||
| 28 | import logging | 27 | import logging |
| @@ -46,6 +45,8 @@ urlpatterns = [ | |||
| 46 | # in the future. | 45 | # in the future. |
| 47 | url(r'^orm/eventfile$', bldcollector.views.eventfile), | 46 | url(r'^orm/eventfile$', bldcollector.views.eventfile), |
| 48 | 47 | ||
| 48 | url(r'^health$', TemplateView.as_view(template_name="health.html"), name='Toaster Health'), | ||
| 49 | |||
| 49 | # if no application is selected, we have the magic toastergui app here | 50 | # if no application is selected, we have the magic toastergui app here |
| 50 | url(r'^$', never_cache(RedirectView.as_view(url='/toastergui/', permanent=True))), | 51 | url(r'^$', never_cache(RedirectView.as_view(url='/toastergui/', permanent=True))), |
| 51 | ] | 52 | ] |
