Added new urls module por the api
[e_cidadania.git] / src / apps / ecidadania / api / urls / spaces.py
blob0d8064de207ba45903fb2ac848c659ab40186b73
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')),