mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 09:41:33 +00:00
b17b24b159
this will display all information recorded from the specified file, but only to the users that own them (it requires token) this page also has a delete file button, allowing us to provide link to this page for sharex deletion url option once again, this is only for authenticated users, and will only show file that the users own, unless said user is a moderator or higher
16 lines
409 B
JavaScript
16 lines
409 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,
|
|
versions: utils.versionStrings
|
|
})
|
|
})
|
|
|
|
module.exports = routes
|