Добавил апи

This commit is contained in:
KessPen
2024-04-22 19:44:37 +07:00
parent 36b108f1ee
commit 7d292a814e
5 changed files with 126 additions and 5 deletions

11
SusMarketBackend/urls.py Normal file
View File

@@ -0,0 +1,11 @@
from django.urls import path
from . import views
urlpatterns = [
path('get/category', views.category, name='category'),
path('get/products', views.products, name='products'),
path('get/reviews/<int:product>', views.reviews, name='reviews'),
path('post/user/<str:login>/<str:password>', views.register_user, name='register-user'),
path('post/check/user/<str:login>', views.check_user, name='check-user'),
path('get/user/<str:login>/<str:password>', views.user, name='get-user')
]