Add websocketUrl view local

This commit is contained in:
Alice Gaudon 2020-09-23 12:31:09 +02:00
parent 79d3b51f90
commit 47e0756930
2 changed files with 2 additions and 1 deletions

View File

@ -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 <alice@gaudon.pro>",

View File

@ -64,6 +64,7 @@ export default class NunjucksComponent extends ApplicationComponent<void> {
res.locals.body = req.body;
res.locals.app = config.get('app');
res.locals.websocketUrl = config.get('public_websocket_url');
next();
});