Fixed some bugs

* Fixed bug with sync
* Made default list of game randomized
* Added get all games ordered
* Added air for live reload
This commit is contained in:
2022-04-23 11:40:54 +02:00
parent f9d6c24a97
commit 58ff8a64cc
7 changed files with 76 additions and 8 deletions

View File

@@ -74,7 +74,8 @@ func SetupRestServer(frontend embed.FS, swagger embed.FS) {
musicGroup.GET("list", music.GetPlayedSongs)
musicGroup.GET("next", music.GetNextSong)
musicGroup.GET("previous", music.GetPreviousSong)
musicGroup.GET("all", music.GetAllGames)
musicGroup.GET("all", music.GetAllGamesRandom)
musicGroup.GET("all/order", music.GetAllGames)
musicGroup.GET("all/random", music.GetAllGamesRandom)
musicGroup.PUT("played", music.PutPlayed)
musicGroup.GET("addQue", music.AddLatestToQue)