Mudanza de repo
This commit is contained in:
13
api/notificaciones/urls.py
Normal file
13
api/notificaciones/urls.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from rest_framework import routers
|
||||
from django.urls import path, include
|
||||
from .views import TipoNotificacionViewSet, NotificacionViewSet
|
||||
|
||||
# Create a router and register the viewsets
|
||||
router = routers.DefaultRouter()
|
||||
router.register(r'tipos', TipoNotificacionViewSet, basename='tipo-notificacion')
|
||||
router.register(r'notificaciones', NotificacionViewSet, basename='notificacion')
|
||||
|
||||
# Create a router and register the healthcheck view
|
||||
urlpatterns = [
|
||||
path('', include(router.urls)),
|
||||
]
|
||||
Reference in New Issue
Block a user