 
 server.use "/", (req, res)->
 	res.redirect "/api"
-
     
 server.listen 3000
 console.log "Listening on port 3000"

# get configuration data
nconf.env().file({ file: 'config.json'});

mediaTableName 	= nconf.get "MEDIA_TABLE_NAME"
partitionKey 	= nconf.get "GAME_PARTITION_KEY"
accountName 	= nconf.get "STORAGE_NAME"
accountKey 		= nconf.get "STORAGE_KEY"

# setup server
server = express()

bodyParser 	= require "body-parser"
engines		= require "consolidate"
express 	= require "express"
