GET /admin/api/v1/audio
(w http.ResponseWriter, r *http.Request)
| 16 | |
| 17 | // GET /admin/api/v1/audio |
| 18 | func apiV1GetAudio(w http.ResponseWriter, r *http.Request) { |
| 19 | writeJSON(w, http.StatusOK, APIResponse[audioAPIResponse]{ |
| 20 | Success: true, |
| 21 | Data: audioAPIResponse{ |
| 22 | Sounds: audio.GetAllAudio(), |
| 23 | Music: audio.GetMusicFiles(), |
| 24 | SoundFiles: audio.GetSoundFiles(), |
| 25 | }, |
| 26 | }) |
| 27 | } |
| 28 | |
| 29 | // POST /admin/api/v1/audio |
| 30 | // Body: {"identifier": "my-sound", "description": "...", "filepath": "...", "volume": 80, "tags": ["combat"]} |
nothing calls this directly
no test coverage detected