filesafe/routes.js

9 lines
485 B
JavaScript
Raw Normal View History

2017-01-13 07:34:21 +00:00
const routes = require('express').Router()
const uploadController = require('./controllers/uploadController')
2017-01-13 21:33:49 +00:00
const galleryController = require('./controllers/galleryController')
2017-01-13 07:34:21 +00:00
routes.post ('/upload', (req, res, next) => uploadController.upload(req, res, next))
2017-01-13 21:33:49 +00:00
routes.get ('/gallery', (req, res, next) => galleryController.list(req, res, next))
2017-01-13 21:36:54 +00:00
routes.get ('/gallery/test', (req, res, next) => galleryController.test(req, res, next))
2017-01-13 07:34:21 +00:00
module.exports = routes