package Ġcom . get change . ts w . platform . aws Ċ Ċ import Ġcom . amazonaws . services . lambda . runtime . Context Ċ import Ġcom . amazonaws . services . lambda . runtime . RequestHandler Ċ import Ġcom . amazonaws . services . lambda . runtime . events . API Gateway Proxy Request Event Ċ import Ġcom . get change . ts w . Response Ċ import Ġcom . get change . ts w . controllers . Orders Controller Ċ import Ġcom . get change . ts w . service generators . getOrder Service Ċ Ċ class ĠGetUser Orders Handler Ġ: ĠRequest Handler < API Gateway Proxy Request Event , ĠResponse > Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġhandle Request ( event : ĠAPI Gateway Proxy Request Event , Ġcontext : ĠContext ?): ĠResponse Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġorder Service Ġ= Ġget Order Service () ĊĠĠĠĠĠĠĠ Ġval Ġorders Controller Ġ= ĠOrders Controller ( order Service ) ĊĠĠĠĠĠĠĠ Ġreturn Ġevent . path Parameters [" id "] ?. let Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn Ġorders Controller . getUser Orders ( it . to Long ()) ĊĠĠĠĠĠĠĠ Ġ} Ġ?: ĠResponse ( 2 0 4 ) ĊĠĠĠ Ġ} Ċ } Ċ