restructuring

This commit is contained in:
Anton Georgiev 2014-05-12 14:42:06 +00:00
parent 0d31de23fd
commit efcada9692
3 changed files with 7 additions and 3 deletions

View File

@ -1 +1,5 @@
README.md
README.md
coffee index.coffee
Browse to port 4000 in the browser

View File

@ -3,7 +3,7 @@ http = require 'http'
hapi = require 'hapi'
path = require 'path'
handlers = require './handlers'
handlers = require './lib/handlers'
app = express()
app.set('port', process.env.PORT || 4000)

View File

@ -1,7 +1,7 @@
#testapi = require 'testapi'
index = (request, response) ->
response.sendfile('./views/index.html')
response.sendfile('../views/index.html')
login = (req, resp) -> #not working yet
console.log "req=" + JSON.stringify req.query.username