mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 07:56:23 +00:00
b117fa9ad1
also fix nunjucks templates not adhering to env vars overrides for domains config options, because they attempted to read config directly
15 lines
412 B
JavaScript
15 lines
412 B
JavaScript
const routes = require('express').Router()
|
|
const utils = require('../controllers/utilsController')
|
|
const config = require('../config')
|
|
|
|
routes.get([
|
|
'/file/:identifier'
|
|
], async (req, res, next) => {
|
|
// Uploads identifiers parsing, etc., are strictly handled by client-side JS at src/js/file.js
|
|
return res.render('file', {
|
|
config, utils, versions: utils.versionStrings
|
|
})
|
|
})
|
|
|
|
module.exports = routes
|