const http = require('http');

const createPath = filePath => http.resolve(__dirname, '..', filePath);

const paths = {
  indexHtml: createPath('server/public/index.html'),
  publicDir: createPath('server/public'),
};

module.exports = paths;

const path = require('path');

const createPath = filePath => path.resolve(__dirname, '..', filePath);

const paths = {
  indexHtml: createPath('server/public/index.html'),
  publicDir: createPath('server/public'),
};

module.exports = paths;

Use path module instead of http
Use path module instead of http
