Same code on my server from http-function.js

Hello,

I have created endpoint using Backend/http-function.js for image upload on wix server. It’s working fine.

My question is that is it possible?, Can I create same code on my sever using REST API,CURL or Custom app or any other solution.

Please suggest me.