from django.conf.urls import url

from api.citations import views

urlpatterns = [
    url(r'^$', views.CitationList.as_view(), name=views.CitationList.view_name),
    url(r'^(?P<citation_id>\w+)/$', views.CitationDetail.as_view(), name=views.CitationDetail.view_name),
]

from django.conf.urls import url

from api.citations import views

urlpatterns = [
    url(r'^styles/$', views.CitationList.as_view(), name=views.CitationList.view_name),
    url(r'^styles/(?P<citation_id>\w+)/$', views.CitationDetail.as_view(), name=views.CitationDetail.view_name),
]

Add styles prefix to match api v1
Add styles prefix to match api v1

  from django.conf.urls import url
  
  from api.citations import views
  
  urlpatterns = [
-     url(r'^$', views.CitationList.as_view(), name=views.CitationList.view_name),
+     url(r'^styles/$', views.CitationList.as_view(), name=views.CitationList.view_name),
-     url(r'^(?P<citation_id>\w+)/$', views.CitationDetail.as_view(), name=views.CitationDetail.view_name),
+     url(r'^styles/(?P<citation_id>\w+)/$', views.CitationDetail.as_view(), name=views.CitationDetail.view_name),
  ]
  
Add styles prefix to match api v1
## Code Before:
from django.conf.urls import url

from api.citations import views

urlpatterns = [
    url(r'^$', views.CitationList.as_view(), name=views.CitationList.view_name),
    url(r'^(?P<citation_id>\w+)/$', views.CitationDetail.as_view(), name=views.CitationDetail.view_name),
]

## Instruction:
Add styles prefix to match api v1
## Code After:
from django.conf.urls import url

from api.citations import views

urlpatterns = [
    url(r'^styles/$', views.CitationList.as_view(), name=views.CitationList.view_name),
    url(r'^styles/(?P<citation_id>\w+)/$', views.CitationDetail.as_view(), name=views.CitationDetail.view_name),
]
