2021-03-29 13:41:20 +00:00
|
|
|
# Copyright (C) 2020 by Animath
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
from .views import NoteViewSet, ParticipationViewSet, PassageViewSet, PoolViewSet, \
|
2024-07-06 19:26:54 +00:00
|
|
|
SolutionViewSet, TeamViewSet, TournamentViewSet, TweakViewSet, WrittenReviewViewSet
|
2021-03-29 13:41:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
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)
|
2024-07-06 19:26:54 +00:00
|
|
|
router.register(path + "/review", WrittenReviewViewSet)
|
2021-03-29 13:41:20 +00:00
|
|
|
router.register(path + "/solution", SolutionViewSet)
|
|
|
|
router.register(path + "/team", TeamViewSet)
|
|
|
|
router.register(path + "/tournament", TournamentViewSet)
|
2024-03-23 10:36:09 +00:00
|
|
|
router.register(path + "/tweak", TweakViewSet)
|