From 17f97ff7bc34a3d8e0a1e56d6f65aa273ac71487 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Thu, 14 Apr 2022 20:05:15 +0100 Subject: [PATCH] Deduplicate API GET check into single file --- api/v1/assets/read.php | 8 +------- api/v1/certificates/read.php | 8 +------- api/v1/contacts/read.php | 8 +------- api/v1/domains/read.php | 8 +------- api/v1/networks/read.php | 8 +------- api/v1/require_get_method.php | 8 ++++++++ api/v1/software/read.php | 8 +------- api/v1/tickets/read.php | 8 +------- 8 files changed, 15 insertions(+), 49 deletions(-) create mode 100644 api/v1/require_get_method.php diff --git a/api/v1/assets/read.php b/api/v1/assets/read.php index 92b9b3ba..419ecfb1 100644 --- a/api/v1/assets/read.php +++ b/api/v1/assets/read.php @@ -1,13 +1,7 @@