From 47e0756930b778ecf1ebf02cde8690fe66afdae4 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Wed, 23 Sep 2020 12:31:09 +0200 Subject: [PATCH] Add websocketUrl view local --- package.json | 2 +- src/components/NunjucksComponent.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d05e324..d76adc4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wms-core", - "version": "0.22.0-rc.16", + "version": "0.22.0-rc.17", "description": "Node web application framework and toolbelt.", "repository": "https://gitlab.com/ArisuOngaku/wms-core", "author": "Alice Gaudon ", diff --git a/src/components/NunjucksComponent.ts b/src/components/NunjucksComponent.ts index b274ee7..e5da4c7 100644 --- a/src/components/NunjucksComponent.ts +++ b/src/components/NunjucksComponent.ts @@ -64,6 +64,7 @@ export default class NunjucksComponent extends ApplicationComponent { res.locals.body = req.body; res.locals.app = config.get('app'); + res.locals.websocketUrl = config.get('public_websocket_url'); next(); });