from rest_framework import routers
from annonces import api_views as annonces_views
#https://sunscrapers.com/blog/ultimate-tutorial-django-rest-framework-part-1/

router = routers.DefaultRouter()
router.register(r'annonces', annonces_views.AnnonceViewSet)
router.register(r'myannonces', annonces_views.MyAnnonceViewSet, basename='MyModel')

75a047346bcac0a8c91fc4d6d30e909be44d39f1
<mask token>

<mask token>
router.register('annonces', annonces_views.AnnonceViewSet)
router.register('myannonces', annonces_views.MyAnnonceViewSet, basename=
    'MyModel')

<mask token>
router = routers.DefaultRouter()
router.register('annonces', annonces_views.AnnonceViewSet)
router.register('myannonces', annonces_views.MyAnnonceViewSet, basename=
    'MyModel')

from rest_framework import routers
from annonces import api_views as annonces_views
router = routers.DefaultRouter()
router.register('annonces', annonces_views.AnnonceViewSet)
router.register('myannonces', annonces_views.MyAnnonceViewSet, basename=
    'MyModel')

from rest_framework import routers
from annonces import api_views as annonces_views
#https://sunscrapers.com/blog/ultimate-tutorial-django-rest-framework-part-1/

router = routers.DefaultRouter()
router.register(r'annonces', annonces_views.AnnonceViewSet)
router.register(r'myannonces', annonces_views.MyAnnonceViewSet, basename='MyModel')
