from django.conf.urls import patterns, url


urlpatterns = patterns(
    'us_ignite.apps.views',
    url(r'^$', 'app_list', name='app_list'),
    url(r'^add/$', 'app_add', name='app_add'),
    url(r'^featured/$', 'apps_featured', name='apps_featured'),
    url(r'^featured/archive/(?P<slug>[-\w]+)/$', 'apps_featured_archive',
        name='apps_featured_archive'),
    url(r'^(?P<slug>[-\w]+)/$', 'app_detail', name='app_detail'),
    url(r'^(?P<slug>[-\w]+)/edit/$', 'app_edit', name='app_edit'),
    url(r'^(?P<slug>[-\w]+)/export/$', 'app_export', name='app_export'),
    url(r'^(?P<slug>[-\w]+)/hubs-membership/$', 'app_hub_membership',
        name='app_hub_membership'),
    url(r'^(?P<slug>[-\w]+)/membership/$', 'app_membership',
        name='app_membership'),
    url(r'^domain/(?P<domain>[-\w]+)/$', 'app_list', name='app_list_domain'),
    url(r'^stage/(?P<stage>[\d]{1})/$', 'app_list', name='app_list_stage'),
)
