summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-07-26 07:51:44 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-07-26 07:51:44 +0000
commit54f5accd8e23cdc944f74dcf4399ac1d21455065 (patch)
treeaf3899f4dd3b7c0a08f293549d72d5e12c886608 /indoteknik_api/controllers/api_v1
parent310dc5b1ae50cec8e24cc36ace4d440b42f27eff (diff)
parent9166e4dfc6c42aed768e333b0f0c9be016c44d72 (diff)
Merged in feature/iman-categories-homepage (pull request #183)
<iman> update return data api category lob
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-rw-r--r--indoteknik_api/controllers/api_v1/category_management_lob.py5
1 files changed, 1 insertions, 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