Moved reusing extensions to separate file

This commit is contained in:
Daniel
2020-03-23 08:47:22 +01:00
parent 94b1c7256b
commit 2c1d1646e1
3 changed files with 2 additions and 6 deletions

View File

@@ -1,5 +1,4 @@
using { sap.capire.bookshop as my } from '../db/schema';
service AdminService @(_requires:'authenticated-user') {
entity Books as projection on my.Books;
entity Authors as projection on my.Authors;

View File

@@ -1,5 +1,4 @@
using { sap.capire.bookshop as my } from '../db/schema';
service CatalogService @(path:'/browse') {
@readonly entity Books as SELECT from my.Books {*,
@@ -8,8 +7,4 @@ service CatalogService @(path:'/browse') {
@requires_: 'authenticated-user'
action order (book : Books.ID, amount: Integer);
}
// activate pre-build extensions from...
using from '@capire/common';

2
bookshop/srv/ext.cds Normal file
View File

@@ -0,0 +1,2 @@
// Incorporate pre-build extensions from...
using from '@capire/common';