mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 17:21:33 +00:00
refactor: res.query -> .query_parameters
direct hyper-express prop get
This commit is contained in:
parent
25f87b3a49
commit
07d0237031
@ -511,7 +511,7 @@ self.getUpstreamCompat = async (req, res) => {
|
||||
}
|
||||
|
||||
self.generateZip = async (req, res) => {
|
||||
const versionString = parseInt(req.query.v)
|
||||
const versionString = parseInt(req.query_parameters.v)
|
||||
|
||||
const identifier = req.path_parameters.identifier
|
||||
if (identifier === undefined) {
|
||||
|
@ -180,7 +180,7 @@ if (config.cacheControl) {
|
||||
|
||||
// Consider album ZIPs static as well, since they use version in their query string
|
||||
safe.use('/api/album/zip', (req, res, next) => {
|
||||
const versionString = parseInt(req.query.v)
|
||||
const versionString = parseInt(req.query_parameters.v)
|
||||
if (versionString > 0) {
|
||||
res.header('Cache-Control', cacheControls.static)
|
||||
} else {
|
||||
|
@ -23,7 +23,7 @@ routes.get('/a/:identifier', async (req, res) => {
|
||||
return errors.handleNotFound(req, res)
|
||||
}
|
||||
|
||||
const nojs = req.query.nojs !== undefined
|
||||
const nojs = req.query_parameters.nojs !== undefined
|
||||
|
||||
let cacheid
|
||||
if (process.env.NODE_ENV !== 'development') {
|
||||
|
Loading…
Reference in New Issue
Block a user