office templates
This commit is contained in:
@@ -459,6 +459,30 @@ def get_product_office():
|
||||
result = OfficeDashboardService.get_office_products(filters)
|
||||
return jsonify(result)
|
||||
|
||||
@api.route('/office/product-templates', methods=['GET'])
|
||||
def get_product_templates():
|
||||
# Call the dashboard service
|
||||
filters = {
|
||||
'product_id': request.args.get('product_id'),
|
||||
'provision_name': request.args.get('provision_name'),
|
||||
'page': request.args.get('page', 1),
|
||||
'limit': request.args.get('limit', 20)
|
||||
}
|
||||
result = OfficeDashboardService.get_office_product_templates(filters)
|
||||
return jsonify(result)
|
||||
|
||||
@api.route('/office/custom-templates', methods=['GET'])
|
||||
def get_custom_templates():
|
||||
# Call the dashboard service
|
||||
filters = {
|
||||
'custom_id': request.args.get('custom_id'),
|
||||
'provision_name': request.args.get('provision_name'),
|
||||
'page': request.args.get('page', 1),
|
||||
'limit': request.args.get('limit', 20)
|
||||
}
|
||||
result = OfficeDashboardService.get_office_custom_templates(filters)
|
||||
return jsonify(result)
|
||||
|
||||
# =====================================================
|
||||
@api.route('/web/contents', methods=['GET'])
|
||||
# @token_required
|
||||
|
||||
Reference in New Issue
Block a user