diff --git a/CHANGES.rst b/CHANGES.rst index 6479fb5..52974ed 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,8 @@ Changelog 1.2.19 (unreleased) ------------------- -- Nothing changed yet. +- WEB-4153 : Override @vocabularies endpoint to add a cache ruleset on it + [remdub] 1.2.18 (2024-07-01) diff --git a/src/imio/smartweb/common/rest/configure.zcml b/src/imio/smartweb/common/rest/configure.zcml index bdf1555..d52f560 100644 --- a/src/imio/smartweb/common/rest/configure.zcml +++ b/src/imio/smartweb/common/rest/configure.zcml @@ -2,6 +2,8 @@ xmlns="http://namespaces.zope.org/zope" xmlns:plone="http://namespaces.plone.org/plone"> + + + + + + + + + + diff --git a/src/imio/smartweb/common/rest/vocabularies/endpoint.py b/src/imio/smartweb/common/rest/vocabularies/endpoint.py new file mode 100644 index 0000000..d860a21 --- /dev/null +++ b/src/imio/smartweb/common/rest/vocabularies/endpoint.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- + +from plone.restapi.services.vocabularies.get import ( + VocabulariesGet as BaseVocabulariesGet, +) + + +class VocabulariesGet(BaseVocabulariesGet): + def reply(self): + return super(VocabulariesGet, self).reply()