Enable cds watch hello

by moving the `hello` implementation into the subfolder `srv`
This commit is contained in:
Pierre Fritsch
2021-08-03 15:31:03 +02:00
committed by Daniel Hutzel
parent e1052c209b
commit ae09caf7ad
9 changed files with 50 additions and 9 deletions

3
hello/srv/world.cds Normal file
View File

@@ -0,0 +1,3 @@
service say {
function hello (to:String) returns String;
}

3
hello/srv/world.js Normal file
View File

@@ -0,0 +1,3 @@
module.exports = class say {
hello(req) { return `Hello ${req.data.to}!` }
}

5
hello/srv/world.ts Normal file
View File

@@ -0,0 +1,5 @@
module.exports = class say {
hello(req: any) {
return `Hello ${req.data.to} from a TypeScript file!`
}
}