abap2UI5/node/srv/express.mjs
oblomov-dev 47b45ba74c
update
2025-02-19 21:01:18 +00:00

20 lines
534 B
JavaScript

import express from 'express';
import {initializeABAP} from "../output/init.mjs";
import {cl_express_icf_shim} from "../output/cl_express_icf_shim.clas.mjs";
await initializeABAP();
const PORT = 3000;
const app = express();
app.disable('x-powered-by');
app.set('etag', false);
app.use(express.raw({type: "*/*"}));
// ------------------
app.all(["/", "/*"], async function (req, res) {
await cl_express_icf_shim.run({req, res, class: "ZCL_SICF"});
});
app.listen(PORT);
console.log("Listening on port http://localhost:" + PORT);