feat: req preprocessor
This commit is contained in:
@@ -102,7 +102,10 @@ func TestNewUUIDSetter(t *testing.T) {
|
|||||||
response := map[string]any{
|
response := map[string]any{
|
||||||
"subscriber_id": subID,
|
"subscriber_id": subID,
|
||||||
}
|
}
|
||||||
json.NewEncoder(w).Encode(response)
|
if err := json.NewEncoder(w).Encode(response); err != nil {
|
||||||
|
http.Error(w, "Internal Server Error", http.StatusInternalServerError)
|
||||||
|
return
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
http.Error(w, "Subscriber ID not found", http.StatusInternalServerError)
|
http.Error(w, "Subscriber ID not found", http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user