Coverage for src/kwai/api/v1/trainings/api.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2024-01-01 00:00 +0000

1"""Module that defines the trainings API.""" 

2 

3from fastapi import APIRouter 

4 

5from kwai.api.v1.trainings.endpoints import ( 

6 coaches, 

7 teams, 

8 training_definitions, 

9 trainings, 

10) 

11 

12 

13# Remark: Order of include_router is important! 

14api_router = APIRouter() 

15api_router.include_router(coaches.router, tags=["training coaches"]) 

16api_router.include_router(teams.router, tags=["training teams"]) 

17api_router.include_router(training_definitions.router, tags=["training definitions"]) 

18api_router.include_router(trainings.router, tags=["trainings"])