Skip to content

Commit e2cbea7

Browse files
committed
removed the need for /items/
1 parent 8801921 commit e2cbea7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/inventory/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
router = DefaultRouter()
66
# router.register(r'items', InventoryItemViewSet) # This creates /items/
7-
router.register(r'items', InventoryItemViewSet, basename='inventoryitem') # to fix error with missing basename
7+
router.register('', InventoryItemViewSet, basename='inventoryitem') # to fix error with missing basename
88

99
urlpatterns = [
1010
path('', include(router.urls)),

0 commit comments

Comments
 (0)