Merge branch 'feature/#19_estandarizar_ruta_api' into 'develop'
estandarizacion_de_la_ruta_del_api_edicto See merge request !16
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -2,10 +2,10 @@ from rest_framework import routers | @@ -2,10 +2,10 @@ from rest_framework import routers | ||
2 | 2 | ||
3 | from organismo import api as organismo_api | 3 | from organismo import api as organismo_api |
4 | from usuario import api as usuario_api | 4 | from usuario import api as usuario_api |
5 | -from edicto.api import EdictoViewSet | 5 | +from edicto import api as edicto_api |
6 | # Define routes | 6 | # Define routes |
7 | router = routers.DefaultRouter() | 7 | router = routers.DefaultRouter() |
8 | 8 | ||
9 | router.register(prefix='usuario', viewset=usuario_api.UsuarioViewSet) | 9 | router.register(prefix='usuario', viewset=usuario_api.UsuarioViewSet) |
10 | router.register(prefix='organismo', viewset=organismo_api.OrganismoViewSet) | 10 | router.register(prefix='organismo', viewset=organismo_api.OrganismoViewSet) |
11 | -router.register(r'edicto', EdictoViewSet, basename='edicto') | 11 | +router.register(prefix='edicto', viewset=edicto_api.EdictoViewSet) |
-
Please register or login to post a comment