GET /admin/api/v1/colorpatterns
(w http.ResponseWriter, r *http.Request)
| 10 | |
| 11 | // GET /admin/api/v1/colorpatterns |
| 12 | func apiV1GetColorPatterns(w http.ResponseWriter, r *http.Request) { |
| 13 | writeJSON(w, http.StatusOK, APIResponse[map[string][]int]{ |
| 14 | Success: true, |
| 15 | Data: colorpatterns.GetAllColorPatterns(), |
| 16 | }) |
| 17 | } |
| 18 | |
| 19 | // POST /admin/api/v1/colorpatterns |
| 20 | // Body: {"name": "flame", "colors": [1, 2, 3]} |
nothing calls this directly
no test coverage detected