from django.conf.urls import include, url
from .services import *

urlpatterns = [
    url(r'^meals/$', get_home_page, name='homepage'),
    url(r'^meal/(?P<meal_id>[0-9]+)$', get_detail_page , name='detail'),
    url(r'^login/$', login, name='exp_login'),
    url(r'^logout/$', logout, name='exp_logout'),
    url(r'^register/$', create_account, name='register'),
    url(r'^auth/$', is_authenticated, name='authenticated'),
    url(r'^createmeal/$', create_new_listing, name='create_meal'),
    url(r'^search/$', search_listings, name='search_listings'),

]
