Centralized navbar template rendering property definitions.
This commit is contained in:
parent
b9bfa5271e
commit
03fecaddc2
16 changed files with 84 additions and 88 deletions
|
|
@ -14,15 +14,11 @@ GNU Affero General Public License for more details.
|
|||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.*/
|
||||
|
||||
//Config
|
||||
const config = require('../../config.json');
|
||||
const package = require('../../package.json');
|
||||
|
||||
//Local Imports
|
||||
const csrfUtils = require('../utils/csrfUtils');
|
||||
const navRender = require('./navRender');
|
||||
|
||||
//register page functions
|
||||
module.exports.get = async function(req, res){
|
||||
//Render page
|
||||
return res.render('streamInfo', {instance: config.instanceName, links: config.links, user: req.session.user, csrfToken: csrfUtils.generateToken(req)});
|
||||
return navRender.render(req, res, 'streamInfo');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue