diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-10-20 10:17:52 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-10-20 10:17:52 +0700 |
| commit | d4be2f65948da27992841f99ffe1ff04b4de0194 (patch) | |
| tree | e35365b0c47dd5646b8e0033fc2aa74fe835f4a0 /indoteknik_api/controllers/api_v1/product.py | |
| parent | 956a77b7ad29af3620ee37e66c3b13de6a562deb (diff) | |
| parent | 1e08cea66f4b4b3e4664f09986b1e41d0ba57830 (diff) | |
Merge branch 'production' of bitbucket.org:altafixco/indoteknik-addons into production
Diffstat (limited to 'indoteknik_api/controllers/api_v1/product.py')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/product.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/product.py b/indoteknik_api/controllers/api_v1/product.py index 0c8a286b..1b698f26 100644 --- a/indoteknik_api/controllers/api_v1/product.py +++ b/indoteknik_api/controllers/api_v1/product.py @@ -32,7 +32,7 @@ class Product(controller.Controller): category = category.parent_frontend_id categories.reverse() - return self.response(categories) + return self.response(categories, headers=[('Cache-Control', 'max-age=3600, public')]) @http.route(prefix + 'product_variant/<id>/stock', auth='public', methods=['GET', 'OPTIONS']) @controller.Controller.must_authorized() |
