prije gemini provjere
This commit is contained in:
13
001.BACKEND/operations/urls.py
Normal file
13
001.BACKEND/operations/urls.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from django.urls import path, include
|
||||
from rest_framework.routers import DefaultRouter
|
||||
from .views import RadniNalogViewSet, PutniNalogViewSet
|
||||
|
||||
# Kreiramo router i registriramo ViewSet za radne naloge
|
||||
router = DefaultRouter()
|
||||
router.register(r'radni-nalozi', RadniNalogViewSet, basename='radni-nalog')
|
||||
router.register(r'putni-nalozi', PutniNalogViewSet, basename='putni-nalog')
|
||||
|
||||
urlpatterns = [
|
||||
# Uključujemo sve rute koje router generira
|
||||
path('', include(router.urls)),
|
||||
]
|
||||
Reference in New Issue
Block a user