Miroca_Server

This commit is contained in:
Victor Alexandrovich Tsyrenschikov
2026-01-02 00:07:37 +05:00
parent 7ab28ed366
commit c9ae31bc3d
100 changed files with 3108 additions and 0 deletions

12
api/urls.py Normal file
View File

@@ -0,0 +1,12 @@
from django.urls import path,include
from rest_framework.routers import DefaultRouter
from api import views
router = DefaultRouter()
router.register(r'devices', views.DeviceViewSet)
router.register(r'user', views.UserViewSet)
urlpatterns = [
path('', include((router.urls, 'app_name'), namespace='api/device')),
path('', include((router.urls, 'app_name'), namespace='api/user')),
]