1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-24 23:40:29 +02:00

Log DB modifications

This commit is contained in:
Yohann D'ANELLO
2020-09-21 17:34:27 +02:00
parent ca4b0729e7
commit 7ae31f8a61
12 changed files with 347 additions and 0 deletions

View File

@ -1,3 +1,4 @@
from django.conf import settings
from django.conf.urls import url, include
from rest_framework import routers
@ -8,6 +9,10 @@ from .viewsets import UserViewSet
router = routers.DefaultRouter()
router.register('user', UserViewSet)
if "logs" in settings.INSTALLED_APPS:
from logs.api.views import ChangelogViewSet
router.register('logs', ChangelogViewSet)
app_name = 'api'
# Wire up our API using automatic URL routing.