const proxy = require('http-proxy-middleware');

module.exports = function(app) {
  app.use(proxy('/api', { target: 'http://127.0.0.1:8000/' }))
  app.use(proxy('/media', { target: 'http://127.0.0.1:8000/' }))
  app.use(proxy('/admin', { target: 'http://127.0.0.1:8000/' }))
};