Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 582 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 582 Bytes

express-icf-shim

express 4.x ICF shim, if_http_extension

The ABAP code must set correct status and content types in responses.

npm install express --save-dev

Usage

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();

...

app.use(express.raw({type: "*/*"}));

...

app.all(["/abap", "/abap*"], async function (req, res) {
  await cl_express_icf_shim.run({req, res, class: "ZCL_HTTP_HANDLER"});
});

...