mamweb/api/urls.py

22 lines
964 B
Python
Raw Normal View History

2021-10-05 00:00:15 +02:00
from django.urls import path
from . import views
2024-08-05 11:46:38 +02:00
from personalni.utils import org_required
2021-10-05 00:00:15 +02:00
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'),
2022-11-22 00:15:20 +01:00
path('api/autocomplete/resitel_public/', views.PublicResitelAutocomplete.as_view(), name='autocomplete_resitel_public'),
2021-10-05 00:00:15 +02:00
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'),
2021-10-05 00:00:15 +02:00
# Ceka na autocomplete v3
# path('autocomplete/organizatori/',
# org_member_required(views.OrganizatorAutocomplete.as_view()),
2024-11-01 12:38:47 +01:00
# name='autocomplete_organizator')
2021-10-05 00:00:15 +02:00
]