mirror of
https://github.com/kaaninchen/Laterna.git
synced 2026-09-17 19:12:48 +00:00
feat: toggle controller state on/off
This commit is contained in:
@@ -24,6 +24,7 @@ func listColors(w http.ResponseWriter, r *http.Request) {
|
||||
colors, err := db.GetAllColors()
|
||||
if err != nil {
|
||||
utils.ErrorResponse(w, http.StatusInternalServerError, err.Error())
|
||||
return
|
||||
}
|
||||
utils.SuccessResponse(w, http.StatusOK, colors)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user