backend: Add request as parameter to json_success.

Adds request as a parameter to json_success as a refactor towards
making `ignored_parameters_unsupported` functionality available
for all API endpoints.

Also, removes any data parameters that are an empty dict or
a dict with the generic success response values.
This commit is contained in:
Lauryn Menard
2022-01-31 13:44:02 +01:00
committed by Tim Abbott
parent 6f7e53c517
commit 3be622ffa7
139 changed files with 304 additions and 294 deletions

View File

@@ -106,7 +106,7 @@ def api_semaphore_webhook(
else project_name
)
check_send_webhook_message(request, user_profile, subject, content, event)
return json_success()
return json_success(request)
def semaphore_classic(payload: Dict[str, Any]) -> Tuple[str, str, str, str]: