# Path: office/views.py
# class DRFAuthenticatedGraphQLView(GraphQLView):
#     """
#     Extended default GraphQLView.
#     """
# 
#     @method_decorator(check_jwt_decorator)
#     def dispatch(self, request, *args, **kwargs):
#         return super(DRFAuthenticatedGraphQLView, self).dispatch(
#             request, *args, **kwargs)


from django.contrib import admin
from django.conf import settings
from django.conf.urls import include, url
from rest_framework_jwt.views import (obtain_jwt_token, refresh_jwt_token,
                                      verify_jwt_token)
from office.views import DRFAuthenticatedGraphQLView
    import debug_toolbar



urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^api-token-auth/$', obtain_jwt_token),
    url(r'^api-token-refresh/$', refresh_jwt_token),

# Path: office/views.py
# class DRFAuthenticatedGraphQLView(GraphQLView):
#     """
#     Extended default GraphQLView.
#     """
# 
#     @method_decorator(check_jwt_decorator)
#     def dispatch(self, request, *args, **kwargs):
#         return super(DRFAuthenticatedGraphQLView, self).dispatch(
#             request, *args, **kwargs)


# Path: office/urls.py
from django.contrib import admin
from django.conf import settings
from django.conf.urls import include, url
from rest_framework_jwt.views import (obtain_jwt_token, refresh_jwt_token,
                                      verify_jwt_token)
from office.views import DRFAuthenticatedGraphQLView
    import debug_toolbar




urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^api-token-auth/$', obtain_jwt_token),
    url(r'^api-token-refresh/$', refresh_jwt_token),

    url(r'^api-token-verify/$', verify_jwt_token),