 
 # Routing
 renderHomepage = (req, res) ->
-  {SpeciesData, FormeData, MoveData, ItemData} = require './data/bw'
+  {SpeciesData, FormeData, MoveData, ItemData} = require './server/bw/data'
   local = process.env.NODE_ENV in [ 'development', 'test' ]
   res.render 'index.jade', {local, SpeciesData, FormeData, MoveData, ItemData}
 

httpServer.listen(PORT)

generateUsername = ->
  {SpeciesData} = require './data/bw'
  randomName = (name  for name of SpeciesData)
  randomName = randomName[Math.floor(Math.random() * randomName.length)]
  randomName = randomName.split(/\s+/)[0]

# API
app.namespace "/v1/api", ->
  app.get '/pokemon', (req, res) ->
    {SpeciesData} = require './server/bw/data'
    res.json(SpeciesData)

userList = []
