Create HTTP POST endpoint for external service

Hey @thecaninecompanyin !

I see you use the ok() method. This method is used when you want to send a response with status 200 .

If you want to send the status with 301 status try to use a response() method with any custom status code.

Demo:
https://alexanderz5.wixsite.com/redirect-example/_functions/veloRef

import { response } from 'wix-http-functions';

export function get_veloRef() {
    const url = 'https://www.wix.com/velo/reference/wix-http-functions/response';

    return response({
        status: 301,
        headers: {
            location: url,
        },
    });
}