mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
URL Order
This commit is contained in:
parent
7523610710
commit
5d1cbae236
1 changed files with 2 additions and 6 deletions
|
@ -8,14 +8,10 @@ admin.autodiscover()
|
|||
snippet_resource = Resource(handler=SnippetHandler)
|
||||
|
||||
urlpatterns = patterns('',
|
||||
(r'^', include('pastebin.apps.dpaste.urls')),
|
||||
|
||||
# Static
|
||||
url(r'^about/$', 'django.views.generic.simple.direct_to_template', {'template': 'about.html'}, name='about'),
|
||||
|
||||
url(r'^admin/', include(admin.site.urls)),
|
||||
|
||||
# API
|
||||
url(r'^api/(?P<secret_id>[^/]+)/$', snippet_resource),
|
||||
url(r'^api/$', snippet_resource),
|
||||
url(r'^api/$', snippet_resource),
|
||||
(r'^', include('pastebin.apps.dpaste.urls')),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue