Commit ced47105 authored by les's avatar les
Browse files

hotfix thumb path

parent b1b8a8e8
......@@ -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)'/settings', isAdmin, settingsController.setRequest)'/settings/favicon', isAdmin, multer({ dest: 'thumb/' }).single('favicon'), settingsController.setFavicon)'/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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment