Fixed some bugs with songs not found made the application crash. Now checking if song exists and if not, remove song from DB and find another one. Frontend is now decoupled from the backend.
This commit is contained in:
1 parent
16f2e07bd1
commit
a863702b22
8 files changed
+57
-59
No files matched your search
+1
-1
@@ -24,7 +24,7 @@ func (m *Music) GetSong(ctx *gin.Context) {
|
||||
helpers.SendSong(ctx, s)
|
||||
}
|
||||
|
||||
func (m *Music) GetMusicFirst(ctx *gin.Context) {
|
||||
func (m *Music) GetSoundCheckSong(ctx *gin.Context) {
|
||||
song := server.GetSoundCheckSong()
|
||||
helpers.SendSong(ctx, song)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user