add server info query

This commit is contained in:
Kendall Garner
2024-02-01 08:17:31 -08:00
parent 9995b2e774
commit 9720fcc202
13 changed files with 173 additions and 10 deletions
+14
View File
@@ -50,6 +50,13 @@ export const contract = c.router({
200: ssType._response.randomSongList,
},
},
getServerInfo: {
method: 'GET',
path: 'getOpenSubsonicExtensions.view',
responses: {
200: ssType._response.serverInfo,
},
},
getTopSongsList: {
method: 'GET',
path: 'getTopSongs.view',
@@ -58,6 +65,13 @@ export const contract = c.router({
200: ssType._response.topSongsList,
},
},
ping: {
method: 'GET',
path: 'ping.view',
responses: {
200: ssType._response.ping,
},
},
removeFavorite: {
method: 'GET',
path: 'unstar.view',