#228 running dbgate on subpath

This commit is contained in:
Jan Prochazka
2022-02-24 14:42:37 +01:00
parent 07c7a0405a
commit 7112f930ae
5 changed files with 24 additions and 31 deletions

View File

@@ -1,5 +1,6 @@
const _ = require('lodash');
const express = require('express');
const getExpressPath = require('./getExpressPath');
/**
* @param {string} route
@@ -74,6 +75,6 @@ module.exports = function useController(app, electron, route, controller) {
}
if (app) {
app.use(route, router);
app.use(getExpressPath(route), router);
}
};