from django.conf.urls import url

from . import views


url_path = 'autox'

urlpatterns = [
    url(r'^%s/$'%url_path, views.latest_event_redirect, name='autox.latest_event'),
    url(r'^%s/search/$'%url_path, views.search_events, name='autox.search_events'),
    url(r'^%s/(?P<event_id>\d+)/$'%url_path, views.event_results, name='autox.event_results'),
    url(r'^%s/geoloc/$'%url_path, views.geolocation_data, name='autox.geolocation_data'),
    url(r'^%s/jslog/$'%url_path, views.javascript_log, name='autox.javascript_log'),
    url(r'^%s/admin/$'%url_path, views.admin_latest_event_redirect, name='autox.admin_latest_event'),
    url(r'^%s/(?P<event_id>\d+)/admin/$'%url_path, views.event_admin, name='autox.event_admin'),
    url(r'^%s/(?P<event_id>\d+)/admin/perms/$'%url_path, views.event_admin_perms, name='autox.event_admin_perms'),
    url(r'^%s/(?P<event_id>\d+)/admin/timer/$'%url_path, views.event_admin_timer, name='autox.event_admin_timer'),
]
