in src/simulatorwebview/localserver.ts [49:83]
private initRouter() {
this.router = express.Router();
this.router.get(
"/api/getinputdevicelist",
async (req, res, next) => await this.getInputDeviceList(req, res, next),
);
this.router.get(
"/api/polling",
async (req, res, next) => await this.polling(req, res, next),
);
this.router.get(
"/api/getpersistedinputs",
async (req, res, next) => await this.getPersistedInputs(req, res, next),
);
this.router.post(
"/api/send",
async (req, res, next) => await this.send(req, res, next),
);
this.router.post(
"/api/generaterandomjson",
async (req, res, next) => await this.generateRandomJson(req, res, next),
);
this.router.post(
"/api/cancel",
async (req, res, next) => await this.cancel(req, res, next),
);
this.router.post(
"/api/presistinputs",
async (req, res, next) => await this.persistInputs(req, res, next),
);
this.router.post(
"/api/telemetry",
async (req, res, next) => await this.telemetry(req, res, next),
);
}