diff --git a/app/routes.py b/app/routes.py index 522a7eb..9c0d274 100644 --- a/app/routes.py +++ b/app/routes.py @@ -41,6 +41,10 @@ def get_total_dana_by_level(level,kode): #======================================================== # MAIN ROUTE #======================================================== +@main.context_processor +def inject_config(): + return dict(api_base_url=main.config['API_BASE_URL']) + @main.route('/') def index(): with get_connection() as conn: diff --git a/templates/index.html b/templates/index.html index bfdda74..e328a49 100644 --- a/templates/index.html +++ b/templates/index.html @@ -212,6 +212,7 @@ map.setMinZoom(optimalZoom);