from django.conf.urls import url
from api import views

urlpatterns = [
    url(r'^machines/(?P<serial>.+)/$', views.machine_detail),
    url(r'^inventory/(?P<serial>.+)/$', views.machine_inventory),
    url(r'^machines/$', views.machine_list),
    url(r'^facts/(?P<serial>.+)/$', views.facts),
    url(r'^conditions/(?P<serial>.+)/$', views.conditions),
    url(r'^business_units/(?P<pk>.+)/$', views.business_unit),
    url(r'^business_units/$', views.business_unit_list),
    url(r'^machine_groups/(?P<pk>.+)/$', views.machine_group),
    url(r'^machine_groups/$', views.machine_group_list),
]

from django.conf.urls import url
from api import views

urlpatterns = [
    url(r'^machines/(?P<serial>.+)/inventory/$', views.machine_inventory),
    url(r'^machines/(?P<serial>.+)/$', views.machine_detail),
    url(r'^machines/$', views.machine_list),
    url(r'^facts/(?P<serial>.+)/$', views.facts),
    url(r'^conditions/(?P<serial>.+)/$', views.conditions),
    url(r'^business_units/(?P<pk>.+)/$', views.business_unit),
    url(r'^business_units/$', views.business_unit_list),
    url(r'^machine_groups/(?P<pk>.+)/$', views.machine_group),
    url(r'^machine_groups/$', views.machine_group_list),
]

Revert "Think this url is causing issues"
Revert "Think this url is causing issues"

This reverts commit ca4df2f1f23b5ff85b7c1685c6bbcd015f9789cf.

  from django.conf.urls import url
  from api import views
  
  urlpatterns = [
+     url(r'^machines/(?P<serial>.+)/inventory/$', views.machine_inventory),
      url(r'^machines/(?P<serial>.+)/$', views.machine_detail),
-     url(r'^inventory/(?P<serial>.+)/$', views.machine_inventory),
      url(r'^machines/$', views.machine_list),
      url(r'^facts/(?P<serial>.+)/$', views.facts),
      url(r'^conditions/(?P<serial>.+)/$', views.conditions),
      url(r'^business_units/(?P<pk>.+)/$', views.business_unit),
      url(r'^business_units/$', views.business_unit_list),
      url(r'^machine_groups/(?P<pk>.+)/$', views.machine_group),
      url(r'^machine_groups/$', views.machine_group_list),
  ]
  
Revert "Think this url is causing issues"
## Code Before:
from django.conf.urls import url
from api import views

urlpatterns = [
    url(r'^machines/(?P<serial>.+)/$', views.machine_detail),
    url(r'^inventory/(?P<serial>.+)/$', views.machine_inventory),
    url(r'^machines/$', views.machine_list),
    url(r'^facts/(?P<serial>.+)/$', views.facts),
    url(r'^conditions/(?P<serial>.+)/$', views.conditions),
    url(r'^business_units/(?P<pk>.+)/$', views.business_unit),
    url(r'^business_units/$', views.business_unit_list),
    url(r'^machine_groups/(?P<pk>.+)/$', views.machine_group),
    url(r'^machine_groups/$', views.machine_group_list),
]

## Instruction:
Revert "Think this url is causing issues"
## Code After:
from django.conf.urls import url
from api import views

urlpatterns = [
    url(r'^machines/(?P<serial>.+)/inventory/$', views.machine_inventory),
    url(r'^machines/(?P<serial>.+)/$', views.machine_detail),
    url(r'^machines/$', views.machine_list),
    url(r'^facts/(?P<serial>.+)/$', views.facts),
    url(r'^conditions/(?P<serial>.+)/$', views.conditions),
    url(r'^business_units/(?P<pk>.+)/$', views.business_unit),
    url(r'^business_units/$', views.business_unit_list),
    url(r'^machine_groups/(?P<pk>.+)/$', views.machine_group),
    url(r'^machine_groups/$', views.machine_group_list),
]
