2022-07-10 12:46:25 +00:00
|
|
|
const { Router } = require('hyper-express')
|
|
|
|
const routes = new Router()
|
2022-07-12 01:51:22 +00:00
|
|
|
const utils = require('./../controllers/utilsController')
|
|
|
|
const config = require('./../config')
|
2022-06-28 05:03:49 +00:00
|
|
|
|
2022-07-10 12:46:25 +00:00
|
|
|
routes.get('/file/:identifier', async (req, res) => {
|
2022-06-28 05:03:49 +00:00
|
|
|
// Uploads identifiers parsing, etc., are strictly handled by client-side JS at src/js/file.js
|
|
|
|
return res.render('file', {
|
2022-06-29 06:58:09 +00:00
|
|
|
config, utils, versions: utils.versionStrings
|
2022-06-28 05:03:49 +00:00
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
module.exports = routes
|