API1.0.28 ExerciseTree description

This commit is contained in:
Bossanyi Tibor
2021-03-10 21:14:51 +01:00
parent d2d7948a49
commit 2bb531afcd
9 changed files with 61 additions and 40 deletions
@@ -17,7 +17,7 @@ class ExerciseTreeController (private val exerciseTreeRepository: ExerciseTreeRe
@GetMapping("/exercise_tree")
fun getAllActiveMenu(): ResponseEntity<List<ExerciseTree>> {
val list: List<ExerciseTree> = exerciseTreeRepository.getActiveMenu()
logger.info(" -- Get All active Exercise Tree menu.. $list")
logger.info(" -- Get All active Exercise Tree menu.")
return if (list.isEmpty()) ResponseEntity.notFound().build() else
ResponseEntity.ok().body(list)
}