Skip to content

Commit

Permalink
Chore: Update order endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
johndiginee committed Sep 18, 2023
1 parent c5fe899 commit 2c92559
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
path('admin/', admin.site.urls),
path('api/products/', include('product.urls')),
path('api/auth/', include('account.urls')),
path('api/orders/', include('order.urls')),
path('api/', include('order.urls')),
path('api/auth/login/', TokenObtainPairView.as_view()),
path('redoc/', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
]
Expand Down
Binary file modified db.sqlite3
Binary file not shown.
12 changes: 6 additions & 6 deletions order/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@


urlpatterns = [
path('new/', views.new_order, name="new_order"),
path('all/', views.get_orders, name="get_orders"),
path('<str:pk>/', views.get_order, name="get_order"),
path('<str:pk>/process/', views.process_order, name="process_order"),
path('<str:pk>/delete/', views.delete_order, name="delete_order"),
path('orders/new/', views.new_order, name="new_order"),
path('orders/all/', views.get_orders, name="get_orders"),
path('orders/<str:pk>/', views.get_order, name="get_order"),
path('orders/<str:pk>/process/', views.process_order, name="process_order"),
path('orders/<str:pk>/delete/', views.delete_order, name="delete_order"),

path('create-checkout-session/', views.create_checkout_session, name="create_checkout_session"),
path('webhook/', views.stripe_webhook, name="stripe_webhook"),
path('order/webhook/', views.stripe_webhook, name="stripe_webhook"),

]

0 comments on commit 2c92559

Please sign in to comment.