| author | cavaliet |
| Wed, 18 Sep 2013 15:51:57 +0200 | |
| changeset 98 | 7b6ca4ca3f67 |
| parent 47 | b07f8d11f2b8 |
| child 126 | a345f1a67bf1 |
| permissions | -rw-r--r-- |
| 16 | 1 |
# -*- coding: utf-8 -*- |
2 |
''' |
|
3 |
Created on Sep 2, 2013 |
|
4 |
||
5 |
@author: ymh |
|
6 |
''' |
|
7 |
||
8 |
from django.conf.urls import patterns, include, url |
|
9 |
from rest_framework import routers |
|
10 |
from p4l.api import views |
|
11 |
||
| 47 | 12 |
router = routers.DefaultRouter(trailing_slash=False) |
| 16 | 13 |
router.register(r'records', views.RecordViewSet) |
14 |
||
15 |
urlpatterns = patterns('', |
|
16 |
url(r'^', include(router.urls)), |
|
17 |
url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')) |
|
18 |
) |