Première version : mise en route du suivi.
[auf_roa_authentification.git] / serveur / urls.py
CommitLineData
4c929d98
CR
1from django.conf.urls.defaults import *
2from handlers import UserHandler, MessageHandler, PermissionHandler, GroupHandler
3from piston.resource import Resource
4
5# Uncomment the next two lines to enable the admin:
6from django.contrib import admin
7admin.autodiscover()
8
9users = Resource(handler=UserHandler)
10messages = Resource(handler=MessageHandler)
11permissions = Resource(handler=PermissionHandler)
12groups = Resource(handler=GroupHandler)
13
14urlpatterns = 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)