from rest_framework.routers import SimpleRouter

#
from bingo_server.api import views as bingo_server_views

router = SimpleRouter()

router.register('games', bingo_server_views.GameViewSet)

urlpatterns = router.urls

from rest_framework.routers import DefaultRouter

#
from bingo_server.api import views as bingo_server_views

router = DefaultRouter()

router.register('games', bingo_server_views.GameViewSet)

urlpatterns = router.urls

Add root view to API
Add root view to API

- from rest_framework.routers import SimpleRouter
+ from rest_framework.routers import DefaultRouter
  
  #
  from bingo_server.api import views as bingo_server_views
  
- router = SimpleRouter()
+ router = DefaultRouter()
  
  router.register('games', bingo_server_views.GameViewSet)
  
  urlpatterns = router.urls
  
Add root view to API
## Code Before:
from rest_framework.routers import SimpleRouter

#
from bingo_server.api import views as bingo_server_views

router = SimpleRouter()

router.register('games', bingo_server_views.GameViewSet)

urlpatterns = router.urls

## Instruction:
Add root view to API
## Code After:
from rest_framework.routers import DefaultRouter

#
from bingo_server.api import views as bingo_server_views

router = DefaultRouter()

router.register('games', bingo_server_views.GameViewSet)

urlpatterns = router.urls
