поправил косяки

This commit is contained in:
KessPen
2024-05-12 11:05:10 +07:00
parent 01fd3c087a
commit 6ecab8c5af
2 changed files with 14 additions and 2 deletions

View File

@@ -5,13 +5,15 @@ urlpatterns = [
path('', views.index, name='index'),
path('info', views.index, name='info'),
path('profile', views.index, name='profile'),
path('product', views.index, name='product'),
path('product/<int:product>', views.index, name='product'),
path('payment', views.index, name='payment'),
path('scam', views.index, name='scam'),
path('api/get/category', views.category, name='category'),
path('api/get/products', views.products, name='products'),
path('api/get/reviews/<int:product>', views.reviews, name='reviews'),
path('api/post/user/<str:login>/<str:password>', views.register_user, name='register-user'),
path('api/post/review/<str:commentary>/<int:rate>/<int:product>/<str:icon>/<int:user_id>', views.post_review, name='post-review'),
path('api/post/check/user/<str:login>', views.check_user, name='check-user'),
path('api/get/user/<str:login>/<str:password>', views.user, name='get-user')
path('api/get/user/<str:login>/<str:password>', views.user, name='get-user'),
path('api/get/user/<int:user_id>', views.user_by_id, name='get-user-by-id')
]