From 9166e4dfc6c42aed768e333b0f0c9be016c44d72 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Fri, 26 Jul 2024 14:51:03 +0700 Subject: update return data api category lob --- indoteknik_api/controllers/api_v1/category_management_lob.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/indoteknik_api/controllers/api_v1/category_management_lob.py b/indoteknik_api/controllers/api_v1/category_management_lob.py index 0f666f2f..e453e402 100644 --- a/indoteknik_api/controllers/api_v1/category_management_lob.py +++ b/indoteknik_api/controllers/api_v1/category_management_lob.py @@ -30,7 +30,4 @@ class BrandHomepage(controller.Controller): 'category_ids': category_ids }) - return request.make_response( - json.dumps(data), - headers=[('Cache-Control', 'max-age=3600, public'), ('Content-Type', 'application/json')] - ) + return self.response(data, headers=[('Cache-Control', 'max-age=3600, public')]) \ No newline at end of file -- cgit v1.2.3