Created
January 22, 2019 02:46
-
-
Save astrotars/e4db5a7a3c198c8f2bb9bd18c387b80b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import uuid from 'uuid/v4'; | |
import multer from 'multer'; | |
import Upload from '../controllers/upload'; | |
import config from '../config'; | |
module.exports = api => { | |
api.route('/upload').post(multer().single('image'), Upload.create); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment