|
|
|
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
from seminar.utils import org_required
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
# Export škol
|
|
|
|
path('api/export/skoly/', views.exportSkolView, name='export_skoly'),
|
|
|
|
|
|
|
|
|
|
|
|
# Autocomplete
|
|
|
|
path('api/autocomplete/skola/', views.SkolaAutocomplete.as_view(), name='autocomplete_skola'),
|
|
|
|
path('api/autocomplete/resitel/', org_required(views.ResitelAutocomplete.as_view()), name='autocomplete_resitel'),
|
|
|
|
path('api/autocomplete/resitel_public/', views.PublicResitelAutocomplete.as_view(), name='autocomplete_resitel_public'),
|
|
|
|
path('api/autocomplete/problem/odevzdatelny', views.OdevzdatelnyProblemAutocomplete.as_view(), name='autocomplete_problem_odevzdatelny'),
|
|
|
|
path('api/autocomplete/problem/vsechny', views.ProblemAutocomplete.as_view(), name='autocomplete_problem'),
|
|
|
|
|
|
|
|
# Ceka na autocomplete v3
|
|
|
|
# path('autocomplete/organizatori/',
|
|
|
|
# org_member_required(views.OrganizatorAutocomplete.as_view()),
|
|
|
|
# name='seminar_autocomplete_organizator')
|
|
|
|
]
|