hotfix thumb path
This commit is contained in:
parent
b1b8a8e858
commit
ced4710570
1 changed files with 3 additions and 1 deletions
|
@ -16,6 +16,8 @@ const announceController = require('./controller/announce')
|
|||
const storage = require('./storage')
|
||||
const upload = multer({ storage })
|
||||
|
||||
const path = require('path')
|
||||
const config = require('config')
|
||||
const debug = require('debug')('api')
|
||||
|
||||
const api = express.Router()
|
||||
|
@ -103,7 +105,7 @@ api.delete('/event/notification/:code', eventController.delNotification)
|
|||
|
||||
api.get('/settings', settingsController.getAllRequest)
|
||||
api.post('/settings', isAdmin, settingsController.setRequest)
|
||||
api.post('/settings/favicon', isAdmin, multer({ dest: 'thumb/' }).single('favicon'), settingsController.setFavicon)
|
||||
api.post('/settings/favicon', isAdmin, multer({ dest: path.resolve(config.upload_path, 'thumb/') }).single('favicon'), settingsController.setFavicon)
|
||||
|
||||
// confirm event
|
||||
api.get('/event/confirm/:event_id', hasPerm('event:write'), eventController.confirm)
|
||||
|
|
Loading…
Reference in a new issue