Skip to content

Commit 3f87982

Browse files
committed
UI uris
1 parent d0d46b0 commit 3f87982

File tree

7 files changed

+35
-635
lines changed

7 files changed

+35
-635
lines changed

app/scheduling.monitoring.job/ui5.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ builder:
3434
afterTask: generateVersionInfo
3535
configuration:
3636
archiveName: scheduling.monitoring.job
37+
relativePaths: true
3738
additionalFiles:
3839
- xs-app.json
3940
---

app/scheduling.monitoring.job/webapp/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"dataSources": {
1919
"mainService": {
20-
"uri": "odata/v4/job-scheduling/monitoring/",
20+
"uri": "/odata/v4/job-scheduling/monitoring/",
2121
"type": "OData",
2222
"settings": {
2323
"annotations": [],

cds-plugin.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
const fs = require("fs");
44
const path = require("path");
5-
const url = require("url");
65
const cds = require("@sap/cds");
76
const express = require("express");
87
const helmet = require("helmet");
@@ -211,24 +210,6 @@ function serveUIs() {
211210
.serve(`${uiPath}/${app}`)
212211
.from(process.env.SAP_AFC_SDK_PLUGIN_PACKAGE, config.paths[app] ?? `${cds.env.folders.app}${app}/webapp`);
213212
}
214-
cds.app.use(`/${app}/webapp/odata/v4/*`, (req, res) => {
215-
res.redirect(
216-
308,
217-
url.format({
218-
pathname: "/odata/v4/" + req.params[0],
219-
query: req.query,
220-
}),
221-
);
222-
});
223-
cds.app.use(`/${app}/odata/v4/*`, (req, res) => {
224-
res.redirect(
225-
308,
226-
url.format({
227-
pathname: "/odata/v4/" + req.params[0],
228-
query: req.query,
229-
}),
230-
);
231-
});
232213
}
233214
}
234215
}

package-lock.json

Lines changed: 32 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"@cap-js-community/sap-afc-sdk": "./",
8181
"@cap-js/cds-test": "^0.3.0",
8282
"@cap-js/sqlite": "^1.10.0",
83-
"@sap/cds": "^8.9.1",
83+
"@sap/cds": "^8.9.2",
8484
"@sap/cds-dk": "^8.9.1",
8585
"@sap/cds-lsp": "^8.9.1",
8686
"eslint": "^9.24.0",

0 commit comments

Comments
 (0)