2018-10-17 08:51:51 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
2018-10-20 07:48:55 +00:00
|
|
|
from . import views
|
2018-10-17 09:39:31 +00:00
|
|
|
from . import autocomplete as autocomplete_views
|
2018-10-17 08:51:51 +00:00
|
|
|
|
|
|
|
app_name = 'jobs'
|
|
|
|
urlpatterns = [
|
2018-10-20 07:48:55 +00:00
|
|
|
path('', views.Index.as_view(), name='index'),
|
2018-10-20 08:15:59 +00:00
|
|
|
path('jobs/create/', views.JobCreate.as_view(), name='job_create'),
|
|
|
|
path('jobs/', views.JobList.as_view(), name='job_list'),
|
2018-10-20 07:48:55 +00:00
|
|
|
path(
|
|
|
|
'jobs/<int:pk>/detail/', views.JobDetail.as_view(), name='job_detail'),
|
|
|
|
path('jobs/<int:pk>/renew/', views.JobRenew.as_view(), name='job_renew'),
|
2018-10-20 08:15:59 +00:00
|
|
|
path('jobs/<int:job_pk>/applications/', views.ApplicationList.as_view(), name='job_applications'),
|
2018-10-20 07:48:55 +00:00
|
|
|
path(
|
|
|
|
'jobs/<int:job_pk>/apply/',
|
|
|
|
views.ApplicationCreate.as_view(),
|
|
|
|
name='job_apply'),
|
2018-10-17 09:39:31 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
# autocomplete endpoints
|
|
|
|
urlpatterns += [
|
|
|
|
path(
|
|
|
|
'tag-autocomplete/',
|
|
|
|
autocomplete_views.TagAutocomplete.as_view(create_field='name'),
|
|
|
|
name='tag-autocomplete',
|
|
|
|
),
|
2018-10-17 08:51:51 +00:00
|
|
|
]
|