Template services
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user