package Ġcom . rad iant ch amber . walk ar ama Ċ Ċ import Ġcom . rad iant ch amber . walk ar ama . controllers .* Ċ import Ġdev . al pas . auth . auth Routes Ċ import Ġdev . al pas . routing . Route Group Ċ import Ġdev . al pas . routing . Router Ċ Ċ // Ġhttps :// al pas . dev / docs / routing Ċ fun ĠRouter . add Routes () Ġ= Ġapply Ġ{ ĊĠĠĠ Ġgroup Ġ{ ĊĠĠĠĠĠĠĠ Ġweb Routes Group () ĊĠĠĠĠĠĠĠ Ġauth Routes () ĊĠĠĠ Ġ}. middleware Group (" web ") ĊĊĠĠĠ Ġapi Routes () Ċ } Ċ Ċ private Ġfun ĠRoute Group . web Routes Group () Ġ{ ĊĠĠĠ Ġget ("/", ĠWelcome Controller :: index ). name (" welcome ") ĊĠĠĠ Ġ// Ġregister Ġmore Ġweb Ġroutes Ġhere ĊĠĠĠ Ġget ("/ stuff ", ĠSt uff Controller :: index ) ĊĠĠĠ Ġget ("/ stuff / new ", ĠSt uff Controller :: new ). name (" new ") ĊĠĠĠ Ġpost ("/ stuff ", ĠSt uff Controller :: create ). name (" create ") ĊĠĠĠ Ġdelete ("/ stuff /< id >", ĠSt uff Controller :: delete ). name (" delete ") ĊĠĠĠ Ġgroup ("/ walk s ") Ġ{ ĊĠĠĠĠĠĠĠ Ġadd Walk s Routes () ĊĠĠĠ Ġ}. name (" walk s "). must Be Authenticated () ĊĠĠĠ Ġgroup ("/ users ") Ġ{ ĊĠĠĠĠĠĠĠ Ġadd User Routes () ĊĠĠĠ Ġ}. name (" users "). must Be Authenticated () Ċ } Ċ Ċ private Ġfun ĠRoute Group . add Walk s Routes () Ġ{ ĊĠĠĠ Ġget ("/", ĠWalk Controller :: index ). name (" list ") ĊĠĠĠ Ġget ("/ current ", ĠWalk Controller :: show Active ). name (" show _ active ") ĊĠĠĠ Ġget ("/ new ", ĠWalk Controller :: new ). name (" new ") ĊĠĠĠ Ġpost ("/", ĠWalk Controller :: create ). name (" create ") ĊĠĠĠ Ġget ("/ < id >/ edit ", ĠWalk Controller :: edit ). name (" edit ") ĊĠĠĠ Ġdelete ("/ < id >", ĠWalk Controller :: delete ). name (" delete ") ĊĠĠĠ Ġpatch ("/ < id >", ĠWalk Controller :: update ). name (" update ") ĊĠĠĠ Ġpatch ("/ < id >/ react ivate ", ĠWalk Controller :: react ivate ). name (" react ivate ") ĊĠĠĠ Ġpost ("/ < id >/ membership ", ĠWalk Membership Controller :: add ). name (" membership _ add ") ĊĠĠĠ Ġget ("/ < id >/ membership /< member _ id >", ĠWalk Membership Controller :: show ). name (" membership _ show ") ĊĠĠĠ Ġpatch ("/ < id >/ membership /< member _ id >", ĠWalk Membership Controller :: accept ). name (" membership _ accept ") ĊĠĠĠ Ġdelete ("/ < id >/ membership /< member _ id >", ĠWalk Membership Controller :: delete ). name (" membership _ remove ") Ċ } Ċ Ċ private Ġfun ĠRoute Group . add User Routes () Ġ{ ĊĠĠĠ Ġget ("/ < id >", ĠUser Controller :: show ). name (" show ") ĊĠĠĠ Ġget ("/ < id >/ edit ", ĠUser Controller :: edit ). name (" edit ") ĊĠĠĠ Ġpatch ("/ < id >", ĠUser Controller :: update ). name (" update ") Ċ } Ċ Ċ private Ġfun ĠRouter . api Routes () Ġ{ ĊĠĠĠ Ġ// Ġregister ĠAPI Ġroutes Ġhere Ċ } Ċ