Ejemplo n.º 1
0
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.conf.urls import url

from cosinnus.utils.urls import api_patterns


urlpatterns = api_patterns(1, 'myapp', False, 'tests.util_tests.views',
    url(r'^some/view/$', 'some_view', name='view'),
)
Ejemplo n.º 2
0
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.conf.urls import url

from cosinnus.utils.urls import api_patterns

urlpatterns = api_patterns(
    1,
    None,
    True,
    'tests.util_tests.views',
    url(r'^some/view/$', 'some_view', name='view'),
)
Ejemplo n.º 3
0
from __future__ import unicode_literals

from django.conf.urls import url

from cosinnus.utils.urls import api_patterns

urlpatterns = api_patterns(
    1,
    None,
    False,
    'cosinnus.views',
    url(r'^login/$', 'user.login_api', name='login'),
    url(r'^logout/$', 'user.logout_api', name='logout'),
    url(r'^group/list/$', 'group.group_list_api', name='group-list'),
    url(r'^group/list/(?P<group>[^/]+)/$',
        'group.group_detail_api',
        name='group-detail'),
    url(r'^group/add/$', 'group.group_create_api', name='group-add'),
    url(r'^group/delete/(?P<group>[^/]+)/$',
        'group.group_delete_api',
        name='group-delete'),
    url(r'^group/update/(?P<group>[^/]+)/$',
        'group.group_update_api',
        name='group-edit'),
)

urlpatterns += api_patterns(
    1,
    None,
    True,
    'cosinnus.views',