# -*- coding: UTF-8 -*-

from django.conf.urls.defaults import *
from django.contrib import admin

from src.settings import REST_MODELS

urlpatterns = patterns('src.api.views',
                       (r'^permissions/$', 'permissions'),
                       
)


for model in REST_MODELS:
    urlpatterns += patterns('src.api.views', 
                           (r"^%s/$" % model, "REST", {'model': model}),
                           (r"^%s/(?P<id>\d+)/$" % model, "REST", {'model': model}), 
                            )
