package Ġde . de bu gle vel . walk ing d inner . planner . plan Ċ Ċ import Ġio . mic ronaut . http . annotation . Controller Ċ import Ġio . mic ronaut . http . annotation . Get Ċ import Ġmu . Kotlin Logging Ċ import Ġjava . util .* Ċ Ċ @ Controller ("/ plans ") Ċ class ĠPlan Controller ( private Ġval Ġplan Service : ĠPlan Service ) Ġ{ ĊĠĠĠ Ġprivate Ġval Ġlogger Ġ= ĠKotlin Logging . logger Ġ{} ĊĊĠĠĠ Ġ@ Get ("/ { plan Id }") ĊĠĠĠ Ġfun Ġget One ( plan Id : ĠUUID ): ĠGet Plan Response Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . debug (" Called Ġget One ($ plan Id )") ĊĠĠĠĠĠĠĠ Ġval Ġplan Ġ= Ġplan Service . get ( plan Id ) ĊĠĠĠĠĠĠĠ Ġreturn ĠGet Plan Response ( plan ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Get ("/") ĊĠĠĠ Ġfun ĠgetList (): ĠSet < Get Plan Response > Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . debug (" Called ĠgetList () ") ĊĠĠĠĠĠĠĠ Ġval Ġplans Ġ= Ġplan Service . getAll () ĊĠĠĠĠĠĠĠ Ġreturn Ġplans . map Ġ{ ĠGet Plan Response ( it ) Ġ}. toSet () ĊĠĠĠ Ġ} Ċ }