routes.js 395 B

12345678
  1. const routes = require('express').Router()
  2. const uploadController = require('./controllers/uploadController')
  3. const galleryController = require('./controllers/galleryController')
  4. routes.post ('/upload', (req, res, next) => uploadController.upload(req, res, next))
  5. routes.get ('/gallery', (req, res, next) => galleryController.list(req, res, next))
  6. module.exports = routes