feat(backend): login, most endpoints complete

This commit is contained in:
2026-09-07 12:28:09 +02:00
parent 4d4ddfe255
commit ab08a94d55
20 changed files with 737 additions and 108 deletions
+11 -3
View File
@@ -5,16 +5,24 @@ interface StoreSDKConfig {
'loglevel': 'debug' | 'info' | 'log' | 'warn' | 'error' | 'none';
}
interface SubscriptionData {
'id': string;
'status': string;
'expires': number;
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const getSubscriptions = ( _uid: string ) => {
const getSubscriptions = async ( _uid: string ): Promise<SubscriptionData[]> => {
return [ {
'id': 'com.janishutz.MusicPlayer.subscription',
'expires': new Date().getTime() + 200000,
'status': true
'status': 'active'
} ];
};
const configure = ( _config: StoreSDKConfig ) => {}
const configure = ( config: StoreSDKConfig ) => {
console.log( config );
};
export default {
getSubscriptions,