data-viewer as plugin

This commit is contained in:
Daniel Hutzel
2025-03-26 00:49:59 +01:00
parent 6c0520d83f
commit 8ab5430a14
2 changed files with 4 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
const cds = require("@sap/cds")
cds.on ('served', ()=> { // doing that on 'served' to go after the app's own services
cds.app.serve ('/data') .from('@capire/data-viewer','app/viewer')
})