하재연

Update urls.py

...@@ -29,9 +29,9 @@ router.register(r'items', views.SharedItemViewSet) ...@@ -29,9 +29,9 @@ router.register(r'items', views.SharedItemViewSet)
29 urlpatterns = [ 29 urlpatterns = [
30 path('admin/', admin.site.urls), 30 path('admin/', admin.site.urls),
31 path('', include(router.urls)), 31 path('', include(router.urls)),
32 - url(r'^search/$', views.ItemViewSet.search, name='search'), 32 + url(r'^signup/$', views.UserViewSet.signup, name='signup'),
33 - url(r'^<int:pk>/share/$', views.SharedItemViewSet.share, name='share'), 33 + url(r'^login/$', views.UserViewSet.login, name='login'),
34 - url(r'^<int:pk>/move/$', views.ItemViewSet.move, name='move'), 34 + url(r'^renew/$', views.UserViewSet.renew, name='renew'),
35 - url(r'^<int:pk>/copy/$', views.ItemViewSet.copy, name='copy'), 35 + url(r'^<int:pk>/info/$', views.UserViewSet.info, name='info'),
36 - 36 + path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
37 ] 37 ]
......