Switched basic out to "Login" and switched User to oauth, in prep for dreddit_oauth.

This commit is contained in:
2010-06-10 10:13:59 +01:00
parent c73ba0c148
commit 635e81499f
2 changed files with 31 additions and 3 deletions

View File

@@ -7,10 +7,12 @@ from api.handlers import *
oauth = { 'authentication': OAuthAuthentication() }
noauth = { 'authentication': NoAuthentication() }
user_resource = Resource(handler=UserHandler, **noauth)
user_resource = Resource(handler=UserHandler, **oauth)
login_resource = Resource(handler=LoginHandler, **noauth)
urlpatterns = patterns('',
url(r'^user/$', user_resource),
url(r'^login/$, login_resource),
)
urlpatterns += patterns('piston.authentication',