# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import json from odoo import http from odoo.http import request class ThemeCommon(http.Controller): @http.route('/theme_common/google_maps_api_key', type='json', auth='public', website=True) def google_maps_api_key(self): return json.dumps({ 'google_maps_api_key': request.website.google_maps_api_key or '' })