Added new urls module por the api
[e_cidadania.git] / src / apps / ecidadania / api / urls / __init__.py
blob6588418b45ef2f571496bcf57bd2a966091bf7f1
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.accounts import UserViewSet, GroupViewSet
23 router = routers.DefaultRouter()
24 router.register(r'users', UserViewSet)
25 router.register(r'groups', GroupViewSet)
27 # Wire up our API using automatic URL routing.
28 # Additionally, we include login URLs for the browseable API.
29 urlpatterns = patterns('',
31 url(r'^', include(router.urls)),
33 url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),
35 # url(r'^debates/', include('apps.ecidadania.api.urls.debates', namespace='debate_api')),
37 # This one should go on the spaces api
38 # url(r'^news/', include('apps.ecidadania.api.urls.news', namespace='news_api')),
40 url(r'^spaces/', include('apps.ecidadania.api.urls.spaces', namespace='spaces_api')),
42 # url(r'^proposals/', include('apps.ecidadania.api.urls.proposals', namespace='rest_framework')),
44 # url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),
46 # url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),
48 # url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),