nvm I got it to work by using the app directly:
const app = new App({ method: `POST`, body: jobData, session: {}, cookies: {}, signedCookies: {}, query: {}, headers: {} });
const actionFile = await fs.readJSON(`app/api/${action}.json`);
await app.define(actionFile, true);
This will allow us to support get requests, sessions etc as well in a later version and we don’t need to worry about localhost anymore