package Ġmm . inventory . adapter . web . web flux . rest Ċ Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . web . reactive . function . server . co Router Ċ Ċ @ Configuration Ċ class ĠRoutes Ġ{ ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġroute ( categories Handler : ĠCategories Handler ) Ġ= Ġco Router Ġ{ ĊĠĠĠĠĠĠĠ Ġ// ĠCategories ĊĠĠĠĠĠĠĠ ĠGET ("/ categories ", Ġcategories Handler :: roots ) ĊĠĠĠĠĠĠĠ ĠGET ("/ categories / paths ", Ġcategories Handler :: paths ) ĊĠĠĠĠĠĠĠ ĠPOST ("/ categories ", Ġcategories Handler :: create Root ) ĊĠĠĠĠĠĠĠ ĠPOST ("/ categories / import ", Ġcategories Handler :: import FromText ) ĊĠĠĠĠĠĠĠ ĠGET ("/ categories /{ categoryId }", Ġcategories Handler :: children ) ĊĠĠĠĠĠĠĠ ĠGET ("/ categories /{ categoryId }/ path ", Ġcategories Handler :: path ) ĊĠĠĠĠĠĠĠ ĠPOST ("/ categories /{ categoryId }", Ġcategories Handler :: create Child ) ĊĠĠĠĠĠĠĠ ĠDELETE ("/ categories /{ categoryId }", Ġcategories Handler :: delete Category ) ĊĠĠĠ Ġ} Ċ }