Template services

This commit is contained in:
CHIEFSOFT\ameye
2025-09-29 14:50:29 -04:00
parent 808ee0ff3d
commit b8f4d98381
3 changed files with 81 additions and 13 deletions
+5 -11
View File
@@ -13,7 +13,7 @@ from app.api.services import (
SubscriptionsService,
CommonDataService,
OfficeCustomerService,
GenerativesService, OfficeUsersService
GenerativesService, OfficeUsersService, OfficeTemplatesService
)
from app.api.services.comments import CommentsService
from app.utils.logger import logger
@@ -418,24 +418,18 @@ def get_subcriptions_view_office():
@api.route('/office/template/set-custom', methods=['POST'])
# @token_required
def get_set_custom_template_office():
# Call the dashboard service
filters = {
'subscription_uid': request.args.get('subscription_uid')
}
data = request.get_json()
response = []
response = OfficeTemplatesService.set_office_custom_template(data)
return response
@api.route('/office/template/set-template', methods=['POST'])
# @token_required
def get_set_template_office():
# Call the dashboard service
filters = {
'subscription_uid': request.args.get('subscription_uid')
}
data = request.get_json()
response = []
response = OfficeTemplatesService.set_office_user_template(data)
return response
@api.route('/office/billings', methods=['GET'])