Using Corvid as backend for app instead of my own server

Hi there,
I’m developing my first Wix app at the moment - an eCommerce tool. I already wrote up a complete HTML + JavaScript code that I inject in a test website via “Tracking & Analytics” section (enabled in Premium sites).
In order to access my test website’s list of products, which I need for the app, I wrote a backend callback with a REST API and installed it as a module in my test site’s backend as explained here (serverless):
https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions

However, now that I want to deploy my app as a real app, I’ve only seen this approach that requires me to deploy my own server (not serverless) independently:
https://github.com/wix-incubator/sample-wix-rest-app

Is there a way to write my app so it installs a backend Corvid module on the client’s site and so I can just communicate with that?

Is it allowed/possible to do what I’m doing right now in an official app (simply have the backend run on Wix on http-functions.js as explained in the link above instead of on my own server)?

Thanks in advance :slight_smile:

Expose and Access Site APIs

Use MyApi and MyApiClient to expose and access external APIs.

I already implemented it like you described in this tutorial, but I wouldn’t be able to use this scheme in a complete app to sell commercially in Wix’s marketplace, would I?