from django.conf.urls import url, include
from rest_framework import routers
from . import views


routes = routers.DefaultRouter()
routes.register(r'employees', views.EmployeeCrudApi)
routes.register(r'profiles', views.ProfileApiViewSet)

# urlpatterns = routes.urls

urlpatterns = [
    url(r'^v1/', include(routes.urls)),
    url(r'^auth/', views.login),
    url(r'^register/', views.register),
    #url(r'^profile/', views.ProfileApi.as_view()),
    url(r'^profile/(?P<pk>[0-9]+)/$', views.ProfileApi.as_view()),
    url(r'^upload/(?P<pk>[0-9]+)/$$', views.UploadImageAPI.as_view()),
]

# urlpatterns = [
# #url(r'^employees/', views.EmployeeAPI.as_view())
# #    url(r'^employess/$', views.EmployeeCrudApi.as_view())
#     url(r'^v1/$', routes.urls)
# ]
41aee80649cb2f46d365fefed6f10d37fa763220
<mask token>

<mask token>
routes.register('employees', views.EmployeeCrudApi)
routes.register('profiles', views.ProfileApiViewSet)
<mask token>

<mask token>
routes = routers.DefaultRouter()
routes.register('employees', views.EmployeeCrudApi)
routes.register('profiles', views.ProfileApiViewSet)
urlpatterns = [url('^v1/', include(routes.urls)), url('^auth/', views.login
    ), url('^register/', views.register), url('^profile/(?P<pk>[0-9]+)/$',
    views.ProfileApi.as_view()), url('^upload/(?P<pk>[0-9]+)/$$', views.
    UploadImageAPI.as_view())]

from django.conf.urls import url, include
from rest_framework import routers
from . import views
routes = routers.DefaultRouter()
routes.register('employees', views.EmployeeCrudApi)
routes.register('profiles', views.ProfileApiViewSet)
urlpatterns = [url('^v1/', include(routes.urls)), url('^auth/', views.login
    ), url('^register/', views.register), url('^profile/(?P<pk>[0-9]+)/$',
    views.ProfileApi.as_view()), url('^upload/(?P<pk>[0-9]+)/$$', views.
    UploadImageAPI.as_view())]

from django.conf.urls import url, include
from rest_framework import routers
from . import views


routes = routers.DefaultRouter()
routes.register(r'employees', views.EmployeeCrudApi)
routes.register(r'profiles', views.ProfileApiViewSet)

# urlpatterns = routes.urls

urlpatterns = [
    url(r'^v1/', include(routes.urls)),
    url(r'^auth/', views.login),
    url(r'^register/', views.register),
    #url(r'^profile/', views.ProfileApi.as_view()),
    url(r'^profile/(?P<pk>[0-9]+)/$', views.ProfileApi.as_view()),
    url(r'^upload/(?P<pk>[0-9]+)/$$', views.UploadImageAPI.as_view()),
]

# urlpatterns = [
# #url(r'^employees/', views.EmployeeAPI.as_view())
# #    url(r'^employess/$', views.EmployeeCrudApi.as_view())
#     url(r'^v1/$', routes.urls)
# ]