# Path: event_exim/views.py
# def refresh_event(request, eventsource_name, organization_source_pk):
#     def get_queryset(self):
# class PublicEventViewSet(ModelViewSet):


from django.conf import settings
from django.conf.urls import include, url
from event_exim import views


# public API endpoint for developers to fetch data from
public_patterns = [
    url(r'^events/$', views.PublicEventViewSet.as_view({'get': 'list'}),
        name='osdi_public_events'),
]

# 'pixel' for CRMs to include in webpages; returns no actual data
refresh_patterns = [
    url(r'^events/refresh/(?P<eventsource_name>[-.\w]+)/(?P<organization_source_pk>[-.\w]+)/?$',

# Path: event_exim/views.py
# def refresh_event(request, eventsource_name, organization_source_pk):
#     def get_queryset(self):
# class PublicEventViewSet(ModelViewSet):


# Path: event_exim/urls.py
from django.conf import settings
from django.conf.urls import include, url
from event_exim import views



# public API endpoint for developers to fetch data from
public_patterns = [
    url(r'^events/$', views.PublicEventViewSet.as_view({'get': 'list'}),
        name='osdi_public_events'),
]

# 'pixel' for CRMs to include in webpages; returns no actual data
refresh_patterns = [
    url(r'^events/refresh/(?P<eventsource_name>[-.\w]+)/(?P<organization_source_pk>[-.\w]+)/?$',

        views.refresh_event,