Modularized file skeleton
[e_cidadania.git] / src / apps / ecidadania / api / urls.py
blobc7d0c9e6d4fe6e2923c311876047c661ff846c8f
1 # -*- coding: utf-8 -*-
3 # Copyright (c) 2013 Clione Software
4 # Copyright (c) 2010-2013 Cidadania S. Coop. Galega
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 from django.conf.urls import patterns, url, include
19 from rest_framework import routers
20 from apps.ecidadania.api.views import accounts
22 router = routers.DefaultRouter()
23 router.register(r'users', views.UserViewSet)
24 router.register(r'groups', views.GroupViewSet)
26 # Wire up our API using automatic URL routing.
27 # Additionally, we include login URLs for the browseable API.
28 urlpatterns = patterns('',
30 url(r'^', include(router.urls)),
32 url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),