14 строки
385 B
Python
14 строки
385 B
Python
from django.conf.urls import include, patterns, url
|
|
|
|
from rest_framework.routers import SimpleRouter
|
|
|
|
from mkt.abuse.api import AppAbuseViewSet, UserAbuseViewSet
|
|
|
|
abuse = SimpleRouter()
|
|
abuse.register('user', UserAbuseViewSet, base_name='user-abuse')
|
|
abuse.register('app', AppAbuseViewSet, base_name='app-abuse')
|
|
|
|
api_patterns = patterns('',
|
|
url('^abuse/', include(abuse.urls)),
|
|
)
|