var path = require('path')
var express = require('express')
var bodyParser = require('body-parser')

var server = express()

server.use(bodyParser.json())
server.use(express.static(path.join(__dirname, '../')))
server.use(express.static(path.join(__dirname, '../public')))


module.exports = server

var path = require('path')
var express = require('express')
var bodyParser = require('body-parser')

var server = express()

server.use(bodyParser.json())
server.use(express.static(path.join(__dirname, '../')))
server.use(express.static(path.join('./public')))


module.exports = server

remove dirname from infront of static call