How can i pass parametar from my end point to controller

You can access the :id inside the controller by using ctx.params to get the parameters
so

const { id } = ctx.params;

this would extract the :id that was requested if you are sending this an array you can desctructure it but I would then send it with more params

2 Likes