fix(api): валидировать {namespace} во всех эндпоинтах (было только в POST) + регрессионные тесты
This commit is contained in:
@@ -17,7 +17,10 @@ func (h *Handler) ListIoTTelemetry(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
ns := pathVar(r, "namespace")
|
||||
ns, ok := requireNamespace(w, r)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
deviceID := r.URL.Query().Get("device_id")
|
||||
limit := 50
|
||||
if ls := r.URL.Query().Get("limit"); ls != "" {
|
||||
|
||||
Reference in New Issue
Block a user