-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
27 lines (22 loc) · 819 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns(
'',
(r'^admin/', include(admin.site.urls)),
(r'^login/$', 'django.contrib.auth.views.login', {'template_name':'admin/login.html'}),
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
)
urlpatterns += patterns(
'django_oauth.server.views',
# Example:
# (r'^oa_server/', include('oa_server.foo.urls')),
(r'^oauth/request_token/$', 'request_token'),
(r'^oauth/authorize/$', 'authorize'),
(r'^oauth/access_token/$', 'access_token'),
(r'^oauth/resource/$', 'get_resource'),
(r'^api/register/$', 'register'),
(r'^api/applications/$', 'applications'),
(r'^api/logout/$', 'logout'),
)