From 47b45ba74c3d16f0b6d056c7164ff06ba66f0caa Mon Sep 17 00:00:00 2001 From: oblomov-dev <102328295+oblomov-dev@users.noreply.github.com> Date: Wed, 19 Feb 2025 21:01:18 +0000 Subject: [PATCH] update --- node/srv/express.mjs | 2 -- node/srv/zcl_sicf.clas.abap | 4 +++- srv/express.mjs | 20 -------------------- srv/zcl_sicf.clas.abap | 19 ------------------- 4 files changed, 3 insertions(+), 42 deletions(-) delete mode 100644 srv/express.mjs delete mode 100644 srv/zcl_sicf.clas.abap diff --git a/node/srv/express.mjs b/node/srv/express.mjs index 6a7dda2f..c53f507c 100644 --- a/node/srv/express.mjs +++ b/node/srv/express.mjs @@ -1,8 +1,6 @@ import express from 'express'; import {initializeABAP} from "../output/init.mjs"; import {cl_express_icf_shim} from "../output/cl_express_icf_shim.clas.mjs"; - -console.log("test"); await initializeABAP(); const PORT = 3000; diff --git a/node/srv/zcl_sicf.clas.abap b/node/srv/zcl_sicf.clas.abap index 81dbe74e..7436b4ef 100644 --- a/node/srv/zcl_sicf.clas.abap +++ b/node/srv/zcl_sicf.clas.abap @@ -10,7 +10,9 @@ CLASS zcl_sicf IMPLEMENTATION. METHOD if_http_extension~handle_request. - z2ui5_cl_http_handler=>run( server ) + data lo_server type ref to z2ui5_cl_http_handler. + lo_server = z2ui5_cl_http_handler=>factory( server ). + lo_server->main( ). ENDMETHOD. diff --git a/srv/express.mjs b/srv/express.mjs deleted file mode 100644 index c53f507c..00000000 --- a/srv/express.mjs +++ /dev/null @@ -1,20 +0,0 @@ -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); \ No newline at end of file diff --git a/srv/zcl_sicf.clas.abap b/srv/zcl_sicf.clas.abap deleted file mode 100644 index 7436b4ef..00000000 --- a/srv/zcl_sicf.clas.abap +++ /dev/null @@ -1,19 +0,0 @@ -CLASS zcl_sicf DEFINITION PUBLIC FINAL CREATE PUBLIC. - PUBLIC SECTION. - INTERFACES if_http_extension. - PROTECTED SECTION. -ENDCLASS. - - - -CLASS zcl_sicf IMPLEMENTATION. - - METHOD if_http_extension~handle_request. - - data lo_server type ref to z2ui5_cl_http_handler. - lo_server = z2ui5_cl_http_handler=>factory( server ). - lo_server->main( ). - - ENDMETHOD. - -ENDCLASS.