"""
Definition of urls for tob_api.
"""

from django.conf.urls import include, url
from django.views.generic import RedirectView
from . import views

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = [
    url(r"^$", RedirectView.as_view(url="api/v2/")),
    url(
        r"^api-auth/",
        include("rest_framework.urls", namespace="rest_framework"),
    ),
    # url(r"^api/v1/", include("api.urls")),
    url(r"^api/v2/", include("api_v2.urls")),
    url(r"^health$", views.health),
]

"""
Definition of urls for tob_api.
"""

from django.conf.urls import include, url
from django.views.generic import RedirectView
from . import views

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = [
    url(r"^$", RedirectView.as_view(url="api/v2/")),
    url(
        r"^api-auth/",
        include("rest_framework.urls", namespace="rest_framework"),
    ),
    url(r"^api/v2/", include("api_v2.urls")),
    url(r"^health$", views.health),
]

Remove commented-out reference to v1
Remove commented-out reference to v1

Signed-off-by: Nicholas Rempel <b7f0f2181f2dc324d159332b253a82a715a40706@gmail.com>
