package Ġcom . j uan . med ina . Reactive Kotlin Ċ Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . stereotype . Component Ċ import Ġorg . springframework . web . reactive . function . server . router ĊĊ Ċ @ Component Ċ class ĠCustomer Router ( val Ġcustomer Handler : ĠCustomer Handler ) Ġ{ ĊĠ Ġ@ Bean ĊĠ Ġfun Ġcustomer Routes () Ġ= Ġrouter Ġ{ ĊĠĠĠ Ġ"/ customer ". nest Ġ{ ĊĠĠĠĠĠ ĠGET ("/ { id }", Ġcustomer Handler :: get Customer ) ĊĠĠĠĠĠ ĠGET ("/", Ġcustomer Handler :: getAll Customers ) ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ