Can someone post a snippet for how to implement Admin api in koa and pass variables

Highlighted
New Member
2 0 0

I am fairly new to nodejs itself, I am finding it difficult to implement Admin api, If someone can post an example for 

/admin/api/2020-10/collections/{collection_id}/products.json

It would be super helpful.  Basically how to pass variables on to server.js file from client side and proper way to make a fetch request from server.js(Facing issues in accessing my ctx.session.shop variable) cause I am not able to implement it properly. 

0 Likes