2018-08-08 18:07:59 +00:00
|
|
|
from django.urls import path
|
2018-08-09 17:31:50 +00:00
|
|
|
from django.contrib.auth.decorators import login_required
|
2018-08-08 18:07:59 +00:00
|
|
|
from . import views
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('', views.index, name='index'),
|
2018-09-11 20:50:54 +00:00
|
|
|
path('stats', views.count_stats, name='stats'),
|
2019-04-28 13:51:25 +00:00
|
|
|
path('count/export', views.arrow_count_export, name='count_export'),
|
2018-08-08 18:07:59 +00:00
|
|
|
path('count/list', views.arrow_count_list, name='count_list'),
|
2018-08-09 17:31:50 +00:00
|
|
|
path('count/new', login_required(views.NewArrowCount.as_view()),
|
|
|
|
name='count_new'),
|
|
|
|
path('count/edit/<int:id>', login_required(views.EditArrowCount.as_view()),
|
|
|
|
name='count_edit'),
|
2019-07-26 21:32:50 +00:00
|
|
|
path('target/edit', login_required(views.EditTarget.as_view()),
|
|
|
|
name='target_edit'),
|
|
|
|
path('target/delete', views.target_delete,
|
|
|
|
name='target_delete'),
|
2018-08-09 17:31:50 +00:00
|
|
|
path('count/delete/<int:id>', login_required(views.DeleteArrowCount.as_view()),
|
|
|
|
name='count_delete'),
|
|
|
|
path('count/edit/<int:ac_id>/ajax', login_required(views \
|
|
|
|
.arrow_count_update_ajax), name='count_edit_ajax'),
|
2019-07-27 11:58:09 +00:00
|
|
|
]
|