mirror of
https://github.com/System-End/site.git
synced 2026-04-19 16:28:21 +00:00
Switch from send to redirect for doggies (#54)
* Update dogs.js * Update dogs.js * Update dogs.js
This commit is contained in:
parent
4024c137b0
commit
ac4f8de764
1 changed files with 2 additions and 2 deletions
|
|
@ -5,6 +5,6 @@ export default async (req, res) => {
|
|||
.then(r => r.json())
|
||||
.catch(err => res.status(400).send(err))
|
||||
|
||||
const file = fileList.files[0].url_private
|
||||
res.status(200).send(file)
|
||||
const file = fileList.files ? fileList.files[0].url_private : 'https://files.slack.com/files-pri/T0266FRGM-F01DYH13S1X/image_from_ios.jpg?pub_secret=132dcdb6ab'
|
||||
res.redirect(file)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue