Remotely pin file to my personal node

I have a personal IPFS node running on my laptop 24/7. I want to write some Node JS API that would help me pin the CID to my node remotely. Can I do it with js-ipfs & is there any how-to article on this?

Basically what Iā€™m trying to do is a Next JS app that lets me log in (remotely) and call the api (/api/pin/cid/) and then the CID would be pin to my node :slight_smile: