def registerApi(): router = routers.DefaultRouter() router.register(r'users', UserViewSet) return router