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

app_name = 'properties'

urlpatterns = [
    url(r'^add/$', views.add_property, name='addproperty'),
    url(r'^forsale/$', views.prop_forSale, name='propertiesforsale'),
    url(r'^forrent/$', views.prop_forRent, name='propertiesforrent'),
    url(r'^all/$', views.list_u_prop, name='allproperties'),
    url(r'^(?P<property_id>[-0-9]+)/$',
        views.prop_details, name='properties_details'),
    # ex addProperty/5 - send <prop_id> as an arguments | [0-9]+ sequences of digits
    #url(r'^(?P<prop_id>[0-9]+)/$', views.details, name='prop_details'),
    #url(r'^(?P<addProperty_id>[0-9])/$', views.addProperty, name='add'),
]
