UNPKG

acha-framework

Version:

is a modular framework on both client (angular.js) and server (node.js) side, it provides security, orm, ioc, obfuscation and ...

17 lines 625 B
(function (undefined) { Ioc.define('backend.controllers.configuration', ['backend.configuration'], function (provide, config) { provide({ install: function (app) { app.get('/framework-application/configuration', function (req, res) { var content = { login: config.login, i18n: config.i18n, google: { map: { key: config.google.map.key } } }; res.setHeader('content-type', 'text/javascript; charset=utf-8'); res.end('window.achasoft.configuration = {0} ;'.format([JSON.stringify(content)])); }); } }); }); }());