feat: add browsing and media endpoints
- user-scoped getMusicFolders, getIndexes, getArtists, getArtist, getAlbum and getSong - search3 with pagination, literal matching and empty/wildcard queries - stream and download with Range support and RFC 5987 filenames - getCoverArt with cached size variants and visibility checks - V2 migration for per-user album and artist ratings
This commit is contained in:
1 parent
1f73d901d5
commit
643ee42f09
14 files changed
+1364
-4
No files matched your search
@@ -2,16 +2,22 @@ package win.taptap.musicmanager.subsonic.routes
|
||||
|
||||
import io.ktor.server.routing.Route
|
||||
import io.ktor.server.routing.route
|
||||
import win.taptap.musicmanager.config.LibraryConfig
|
||||
import win.taptap.musicmanager.config.UsersConfig
|
||||
import win.taptap.musicmanager.scanner.CoverArtService
|
||||
import win.taptap.musicmanager.scanner.ScanStatus
|
||||
|
||||
/** Authenticated `/rest` subtree. */
|
||||
fun Route.subsonicRoutes(
|
||||
users: UsersConfig,
|
||||
library: LibraryConfig,
|
||||
coverArtService: CoverArtService,
|
||||
startScan: () -> Boolean,
|
||||
scanStatus: () -> ScanStatus,
|
||||
) {
|
||||
route("/rest") {
|
||||
systemRoutes(users, startScan, scanStatus)
|
||||
browsingRoutes(users, library)
|
||||
mediaRoutes(users, library, coverArtService)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user