Ajout du support api-key
[auf_roa_authentification.git] / serveur / urls.py
1 from django.conf.urls.defaults import *
2 from authentification.handlers import UserHandler
3 from piston.resource import Resource
4
5 # Uncomment the next two lines to enable the admin:
6 from django.contrib import admin
7 admin.autodiscover()
8
9 users = Resource(handler=UserHandler)
10 #messages = Resource(handler=MessageHandler)
11 #permissions = Resource(handler=PermissionHandler)
12 #groups = Resource(handler=GroupHandler)
13
14 urlpatterns = patterns('',
15 # Example:
16 # (r'^auf_roa_authentification/', include('auf_roa_authentification.foo.urls')),
17
18 # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
19 # to INSTALLED_APPS to enable admin documentation:
20 # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
21
22 # Uncomment the next line to enable the admin:
23 (r'^admin/', include(admin.site.urls)),
24
25 # Auth application
26 url(r'^auth/user/?(?P<id>\d+)?/?$', users),
27 # url(r'^auth/message/?(?P<id>\d+)?/?$', messages),
28 # url(r'^auth/permission/?(?P<id>\d+)?/?$', permissions),
29 # url(r'^auth/group/?(?P<id>\d+)?/?$', groups)
30 )