ES Modules

This commit is contained in:
Daniel Hutzel
2023-11-18 11:13:58 +01:00
parent 789faeb7c4
commit dec9ec2aba
8 changed files with 52 additions and 27 deletions

View File

@@ -1,6 +1,6 @@
const cds = require('@sap/cds/lib')
import cds from '@sap/cds'
module.exports = class AdminService extends cds.ApplicationService { init(){
export class AdminService extends cds.ApplicationService { init(){
this.before ('NEW','Authors', genid)
this.before ('NEW','Books', genid)
return super.init()