Add admin UI for managing radio fallback music
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m44s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m44s
Upload, list, and delete fallback music files from the admin page. Backend handlers validate file type/size and prevent path traversal. Nginx max body size increased to 50M to support large audio files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -125,6 +125,11 @@ func main() {
|
||||
r.GET("/spotify/recent", store.RecentlyPlayed)
|
||||
// r.POST("/spotify", store.SendSong)
|
||||
|
||||
// RADIO
|
||||
admin.POST("/radio/upload", store.UploadRadioSong)
|
||||
admin.GET("/radio/songs", store.ListRadioSongs)
|
||||
admin.DELETE("/radio/songs/:filename", store.DeleteRadioSong)
|
||||
|
||||
// MESSAGES
|
||||
r.GET("/ws", store.ConnectWebSocket)
|
||||
protected.POST("/messages/upload", store.UploadMessageFile)
|
||||
|
||||
Reference in New Issue
Block a user