add tracks main page. add get my tracks action
This commit is contained in:
committed by
Daniel Hutzel
parent
0f6444589f
commit
bdbd9d425b
@@ -1,8 +1,12 @@
|
||||
using { sap.capire.media.store as my } from '../db/schema';
|
||||
using {sap.capire.media.store as my} from '../db/schema';
|
||||
|
||||
@cds.query.limit : {
|
||||
default : 20,
|
||||
max : 100
|
||||
}
|
||||
service MediaService {
|
||||
entity Employees as projection on my.Employees;
|
||||
entity Customers as projection on my.Customers;
|
||||
entity Employees as projection on my.Employees;
|
||||
entity Customers as projection on my.Customers;
|
||||
entity Albums as projection on my.Albums;
|
||||
entity Artists as projection on my.Artists;
|
||||
entity Genres as projection on my.Genres;
|
||||
@@ -11,5 +15,10 @@ service MediaService {
|
||||
entity MediaTypes as projection on my.MediaTypes;
|
||||
entity PlaylistTrack as projection on my.PlaylistTrack;
|
||||
entity Playlists as projection on my.Playlists;
|
||||
|
||||
@(restrict : [{
|
||||
grant : '*',
|
||||
where : '$user.level > 1'
|
||||
}])
|
||||
entity Tracks as projection on my.Tracks;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user