country model
This commit is contained in:
@@ -13,9 +13,10 @@ from app.api.services import (
|
||||
SubscriptionsService,
|
||||
CommonDataService,
|
||||
OfficeCustomerService,
|
||||
GenerativesService, OfficeUsersService, OfficeTemplatesService
|
||||
GenerativesService, OfficeUsersService, OfficeTemplatesService, OfficeCountryService
|
||||
)
|
||||
from app.api.services.comments import CommentsService
|
||||
from app.models import Country
|
||||
from app.utils.logger import logger
|
||||
from app.api.middlewares import enforce_json, require_auth
|
||||
import os
|
||||
@@ -381,6 +382,13 @@ def get_dashboard():
|
||||
result = OfficeDashboardService.get_dashboard_data()
|
||||
return jsonify(result)
|
||||
|
||||
@api.route('/office/country', methods=['GET'])
|
||||
# @token_required
|
||||
def get_office_country():
|
||||
# Call the dashboard service
|
||||
result = OfficeCountryService.get_office_country_list()
|
||||
return jsonify(result)
|
||||
|
||||
|
||||
@api.route('/office/customers', methods=['GET'])
|
||||
# @token_required
|
||||
|
||||
Reference in New Issue
Block a user