Centralized navbar template rendering property definitions.

This commit is contained in:
rainbow napkin 2026-10-17 02:38:50 -04:00
parent b9bfa5271e
commit 03fecaddc2
16 changed files with 84 additions and 88 deletions

View file

@ -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');
}