add config key to api response

This commit is contained in:
simon 2022-02-17 16:59:59 +07:00
parent 5c3f0d1e5f
commit 265795f4a9
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ class ApiBaseView(APIView):
"es_url": self.default_conf["application"]["es_url"],
"es_auth": self.default_conf["application"]["es_auth"],
}
self.response["config"] = self.default_conf
def get_document(self, document_id):
"""get single document from es"""