 # get configuration data
 nconf.env().file({ file: 'config.json'});
 
-gameTableName 	= nconf.get "GAME_TABLE_NAME"
-partitionKey 	= nconf.get "PARTITION_KEY"
+mediaTableName 	= nconf.get "MEDIA_TABLE_NAME"
+partitionKey 	= nconf.get "GAME_PARTITION_KEY"
 accountName 	= nconf.get "STORAGE_NAME"
 accountKey 		= nconf.get "STORAGE_KEY"
 

apiRouter = new routers.ApiRouter()
server.use "/api", apiRouter.router

browseRouter = new routers.BrowseRouter()
server.use "/browse", browseRouter.router

server.use "/", (req, res)->
	res.redirect "/browse"

	

server.listen 3000
console.log "Listening on port 3000"
azure 		= require "azure"
bodyParser 	= require "body-parser"
engines		= require "consolidate"
express 	= require "express"
nconf 		= require "nconf"
