aboutsummaryrefslogblamecommitdiffstats
path: root/ctrack/caf/urls.py
blob: 5b64be484e799d7b567149cc5e477a9c514bc91c (plain) (tree)
1
2
3
4
5
6
7
8
9
                            
                                                    
 
                                                                                                      
                                 



                
                                                      
                                                                                                   
                                                                                            
                                                                                                          
                                                    
 
from django.urls import path
from django.views.decorators.cache import cache_page

from ctrack.caf.views import ListCAF, ListApplicableSystem, caf_detail_view, ApplicableSystemDetail, \
    ApplicableSystemCreateFromOrg

app_name = "caf"

urlpatterns = [
    path("", view=ListCAF.as_view(), name="caf_list"),
    path("applicablesystems", cache_page(60 * 60)(ListApplicableSystem.as_view()), name="es_list"),
    path("applicablesystems/<int:pk>", ApplicableSystemDetail.as_view(), name="ass_detail"),
    path("applicablesystem/<slug:slug>", ApplicableSystemCreateFromOrg.as_view(), name="create_from_org"),
    path("<int:pk>", caf_detail_view, name="detail")
]