1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-08-24 04:57:56 +02:00

Add API views for participation app

This commit is contained in:
2021-03-29 15:41:20 +02:00
parent a45d57e51a
commit 9359aa7606
5 changed files with 129 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# Copyright (C) 2020 by Animath
# SPDX-License-Identifier: GPL-3.0-or-later
from .views import NoteViewSet, ParticipationViewSet, PassageViewSet, PoolViewSet, \
SolutionViewSet, SynthesisViewSet, TeamViewSet, TournamentViewSet
def register_participation_urls(router, path):
"""
Configure router for participation REST API.
"""
router.register(path + "/note", NoteViewSet)
router.register(path + "/participation", ParticipationViewSet)
router.register(path + "/passage", PassageViewSet)
router.register(path + "/pool", PoolViewSet)
router.register(path + "/solution", SolutionViewSet)
router.register(path + "/synthesis", SynthesisViewSet)
router.register(path + "/team", TeamViewSet)
router.register(path + "/tournament", TournamentViewSet)