Using Wix as WixApp backend

Hey,

I’ve got an idea for a Wix App to help my business (and hopefully others) with fulfillment. I started looking at the pheasability of using Wix as the backend (and exposing apis thought the http-functions.js file).

The issue is literally the first step. The OAuth needs to perform a redirect on the ‘install’ request. From what I can see it doesn’t look like you can do this from within the http-functions. I tried adding the Router definitions but the redirect located in this just causes a 500 error.

Any help is much appreciated.