2018-04-06 03:27:52 +00:00
|
|
|
# ~*~ coding: utf-8 ~*~
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2019-08-31 04:07:03 +00:00
|
|
|
from django.urls.conf import re_path
|
2018-04-06 03:27:52 +00:00
|
|
|
from rest_framework.routers import DefaultRouter
|
2019-08-31 04:07:03 +00:00
|
|
|
|
|
|
|
from common import api as capi
|
2018-04-06 03:27:52 +00:00
|
|
|
from .. import api
|
|
|
|
|
|
|
|
|
|
|
|
app_name = "audits"
|
|
|
|
|
|
|
|
router = DefaultRouter()
|
2019-08-31 04:07:03 +00:00
|
|
|
router.register(r'ftp-logs', api.FTPLogViewSet, 'ftp-log')
|
2018-04-06 03:27:52 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
]
|
|
|
|
|
2019-08-31 04:07:03 +00:00
|
|
|
old_version_urlpatterns = [
|
|
|
|
re_path('(?P<resource>ftp-log)/.*', capi.redirect_plural_name_api)
|
|
|
|
]
|
|
|
|
|
2018-04-06 03:27:52 +00:00
|
|
|
urlpatterns += router.urls
|