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

urlpatterns = [
    url(r'^linha/(?P<idLinha>[0-9]+)$', views.getLinha),
    url(r'^linha/(?P<idLinha>[0-9]+)/(?P<token>.+)/(?P<lat>.+)/(?P<lng>.+)$', views.writeLinha),
    url(r'^test$', views.testLinha),
]

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

urlpatterns = [
    url(r'^linha/(?P<idLinha>[0-9]+)$', views.testLinha),
    url(r'^linha/(?P<idLinha>[0-9]+)/(?P<token>.+)/(?P<lat>.+)/(?P<lng>.+)$', views.writeLinha),
]

Test in the original URL
Test in the original URL

  from django.conf.urls import url
  from . import views
  
  urlpatterns = [
-     url(r'^linha/(?P<idLinha>[0-9]+)$', views.getLinha),
+     url(r'^linha/(?P<idLinha>[0-9]+)$', views.testLinha),
      url(r'^linha/(?P<idLinha>[0-9]+)/(?P<token>.+)/(?P<lat>.+)/(?P<lng>.+)$', views.writeLinha),
-     url(r'^test$', views.testLinha),
  ]
  
Test in the original URL
## Code Before:
from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^linha/(?P<idLinha>[0-9]+)$', views.getLinha),
    url(r'^linha/(?P<idLinha>[0-9]+)/(?P<token>.+)/(?P<lat>.+)/(?P<lng>.+)$', views.writeLinha),
    url(r'^test$', views.testLinha),
]

## Instruction:
Test in the original URL
## Code After:
from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^linha/(?P<idLinha>[0-9]+)$', views.testLinha),
    url(r'^linha/(?P<idLinha>[0-9]+)/(?P<token>.+)/(?P<lat>.+)/(?P<lng>.+)$', views.writeLinha),
]
