mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-04 19:30:13 +00:00
add config key to api response
This commit is contained in:
parent
5c3f0d1e5f
commit
265795f4a9
@ -34,6 +34,7 @@ class ApiBaseView(APIView):
|
|||||||
"es_url": self.default_conf["application"]["es_url"],
|
"es_url": self.default_conf["application"]["es_url"],
|
||||||
"es_auth": self.default_conf["application"]["es_auth"],
|
"es_auth": self.default_conf["application"]["es_auth"],
|
||||||
}
|
}
|
||||||
|
self.response["config"] = self.default_conf
|
||||||
|
|
||||||
def get_document(self, document_id):
|
def get_document(self, document_id):
|
||||||
"""get single document from es"""
|
"""get single document from es"""
|
||||||
|
Loading…
Reference in New Issue
Block a user