Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Marta Miranda
/
boletin_api
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Enzo Yair
2023-07-30 10:53:56 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f34a08d3737e1d1edad5a3e355c88338d2c09bd7
f34a08d3
1 parent
827b1243
estandarizacion_de_la_ruta_del_api_edicto
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
project/router.py
project/router.py
View file @
f34a08d
...
...
@@ -2,10 +2,10 @@ from rest_framework import routers
from
organismo
import
api
as
organismo_api
from
usuario
import
api
as
usuario_api
from
edicto
.api
import
EdictoViewSet
from
edicto
import
api
as
edicto_api
# Define routes
router
=
routers
.
DefaultRouter
()
router
.
register
(
prefix
=
'usuario'
,
viewset
=
usuario_api
.
UsuarioViewSet
)
router
.
register
(
prefix
=
'organismo'
,
viewset
=
organismo_api
.
OrganismoViewSet
)
router
.
register
(
r'edicto'
,
EdictoViewSet
,
basename
=
'edicto'
)
router
.
register
(
prefix
=
'edicto'
,
viewset
=
edicto_api
.
EdictoViewSet
)
...
...
Please
register
or
login
to post a comment