'use strict';

const express = require('express');
const MsgQueueClient = require('msgqueue-client');

const config = require('./config.js');

const app = express();
const mQ = new MsgQueueClient(config.url);

app.get('/test', (req, res) => {
  mQ.enqueue('image_scrape_req');
  res.status(200).send('test hit');
});

app.listen(app.get('port'), () => {
  console.log('api-server is listening on port', app.get('port'));
});

'use strict';

const express = require('express');
const MsgQueueClient = require('msgqueue-client');

const mqServerConfig = require('../common/config/mqserver.js');
const config = require('./config.js');

const app = express();
const mQ = new MsgQueueClient(mqServerConfig.url);

app.set('port', config.port);

app.get('/test', (req, res) => {
  mQ.enqueue('image_scrape_req');
  res.status(200).send('test hit');
});

app.listen(app.get('port'), () => {
  console.log('api-server is listening on port', app.get('port'));
});

Fix port and config references
Fix port and config references
