Fixed some bugs and added Random Classic

This commit is contained in:
Sansan committed 2024-07-28 15:58:12 +02:00
1 parent 59f1e2c75c
commit 51a74a9ed1
12 files changed
+152 -16

No files matched your search

+5
View File
@@ -44,6 +44,11 @@ func (m *Music) GetRandomSongLowChance(ctx *gin.Context) {
helpers.SendSong(ctx, song)
}
func (m *Music) GetRandomSongClassic(ctx *gin.Context) {
song := server.GetRandomSongClassic()
helpers.SendSong(ctx, song)
}
func (m *Music) GetSongInfo(ctx *gin.Context) {
song := server.GetSongInfo()
ctx.JSON(http.StatusOK, song)