fix redirect
This commit is contained in:
@@ -3,16 +3,14 @@ service CatalogService @(path:'/browse') {
|
||||
|
||||
/** For displaying lists of Books */
|
||||
@readonly entity ListOfBooks as projection on Books
|
||||
excluding { descr };
|
||||
excluding { descr, contents };
|
||||
|
||||
/** For display in details pages */
|
||||
@readonly entity Books as projection on my.Books { *,
|
||||
author.name as author
|
||||
} excluding { createdBy, modifiedBy };
|
||||
} excluding { createdBy, modifiedBy, contents };
|
||||
|
||||
@requires: 'authenticated-user'
|
||||
action submitOrder ( book: Books:ID, quantity: Integer ) returns { stock: Integer };
|
||||
event OrderedBook : { book: Books:ID; quantity: Integer; buyer: String };
|
||||
}
|
||||
@cds.redirection.target: true
|
||||
@readonly entity Contents as projection on my.Contents;
|
||||
@@ -7,6 +7,6 @@ extend service CatalogService with {
|
||||
*, //> non-localized defaults, e.g. title
|
||||
key ID,
|
||||
texts.title as localized_title,
|
||||
texts.locale
|
||||
};
|
||||
texts.locale,
|
||||
} excluding { contents };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user