from django.conf.urls import patterns, include, url from spots.common.route import mapping import views urlpatterns = patterns('spots.snaps', mapping(r'^$', get=views.get_snaps, post=views.create_snap), mapping(r'^(?P<snap_id>\d+)/$', get=views.get_snap, post=views.update_snap), mapping(r'^(?P<snap_id>\d+)/comments/$', get=views.get_snap_comments, post=views.create_snap_comment), mapping(r'^(?P<snap_id>\d+)/like/$', get=views.like_check, post=views.like_snap), url(r'^(?P<snap_id>\d+)/dislike/$', views.dislike_snap), )
from django.conf.urls import patterns, include, url from spots.common.route import mapping import views urlpatterns = patterns('spots.spots', mapping('^$', get=views.get_spot_list, post=views.create_spot), mapping('^physical_map/$', get=views.get_physical_spot_map), mapping('^logical_map/$', get=views.get_logical_spot_map), mapping('^(?P<spot_id>\d+)/$', get=views.get_spot_info, post=views.update_spot_info), mapping('^(?P<spot_id>\d+)/join/$', post=views.add_spot_users), mapping('^(?P<spot_id>\d+)/users/$', get=views.get_spot_users, post=views.add_spot_users), url(r'^(?P<spot_id>\d+)/search_users/$', views.search_users), mapping('^(?P<spot_id>\d+)/snaps/$', get=views.get_spot_snaps), mapping('^(?P<spot_id>\d+)/profile_snap/$', get=views.get_spot_profile_snap, post=views.post_spot_profile_snap), mapping('^(?P<spot_id>\d+)/profile_image/$', get=views.get_spot_profile_image, post=views.post_spot_profile_image), url('^(?P<spot_id>\d+)/map/$', views.get_user_map), )
from django.conf.urls import patterns, include, url from spots.common.route import mapping import views # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('spots.users', mapping(r'^$', get=views.get_users, post=views.signup), url(r'^signin/$', views.signin), url(r'^signout/$', views.signout), url(r'^checksession/$', views.checksession), mapping(r'^(?P<user_id>\d+)/$', get=views.get_user_profile, post=views.update_user_profile), mapping(r'^(?P<user_id>\d+)/token/$', post=views.set_token), mapping(r'^(?P<user_id>\d+)/profile_image/$', get=views.get_profile_image, post=views.post_profile_image), mapping(r'^(?P<user_id>\d+)/profile_snap/$', get=views.get_user_profile_snap, post=views.post_user_profile_snap), mapping(r'^(?P<user_id>\d+)/favorite/$', get=views.get_favorite_snaps), mapping(r'^(?P<user_id>\d+)/spots/$', get=views.get_spot_list), # Examples: # url(r'^$', 'spots.views.home', name='home'), # url(r'^spots/', include('spots.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: # url(r'^admin/', include(admin.site.urls)), )