# Path: kobra/views.py
# def health_view(request):
#     return HttpResponse()
# 
# def frontend_view(request):
#     return TemplateResponse(request, template='index.html', context=dict(
#         FRONTEND_ENV=json.dumps(settings.FRONTEND_SETTINGS),
#     ))


from django.conf.urls import include, url
from django.contrib import admin
from rest_framework.documentation import include_docs_urls
from .views import health_view, frontend_view
# -*- coding: utf-8 -*-



urlpatterns = [
    url(r'^health/$', health_view),
    url(r'^api/docs/', include_docs_urls(title='Kobra API')),
    url(r'^api/v1/', include('kobra.api.v1.urls', namespace='v1')),

    url(r'^admin/', include(admin.site.urls)),

    # Matches everything* and therefore must come last.
    # *everything except /static/... since this breaks the static file serving.
    # All other URLs are handled by the frontend app router.
    url(r'^(?!static/)', include([
        url(r'^$', frontend_view, name='home'),

# Path: kobra/views.py
# def health_view(request):
#     return HttpResponse()
# 
# def frontend_view(request):
#     return TemplateResponse(request, template='index.html', context=dict(
#         FRONTEND_ENV=json.dumps(settings.FRONTEND_SETTINGS),
#     ))


# Path: kobra/urls.py
from django.conf.urls import include, url
from django.contrib import admin
from rest_framework.documentation import include_docs_urls
from .views import health_view, frontend_view

# -*- coding: utf-8 -*-



urlpatterns = [
    url(r'^health/$', health_view),
    url(r'^api/docs/', include_docs_urls(title='Kobra API')),
    url(r'^api/v1/', include('kobra.api.v1.urls', namespace='v1')),

    url(r'^admin/', include(admin.site.urls)),

    # Matches everything* and therefore must come last.
    # *everything except /static/... since this breaks the static file serving.
    # All other URLs are handled by the frontend app router.
    url(r'^(?!static/)', include([
        url(r'^$', frontend_view, name='home'),

        url(r'^.*/$', frontend_view),