mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-28 18:26:18 +08:00
update
This commit is contained in:
parent
43b31736ef
commit
47b45ba74c
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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);
|
|
@ -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.
|
Loading…
Reference in New Issue
Block a user