mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 02:58:20 +08:00
20 lines
534 B
JavaScript
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); |