Fix reinforced obsidian recipe

This commit is contained in:
Andrew Miner
2015-03-18 17:16:32 -07:00
parent b10fe74ba5
commit e7723b9452
3 changed files with 5 additions and 4 deletions
+4 -1
View File
@@ -18,7 +18,7 @@ ROOT = './dist/'
app = express()
app.get '*/$', (request, response)->
serveIndex = (request, response)->
response.set 'Content-Type', 'text/html'
filePath = "#{request.path}index.html".replace /^\//, ''
fs.stat "#{ROOT}#{filePath}", (err, stats)->
@@ -29,6 +29,9 @@ app.get '*/$', (request, response)->
response.sendFile '/app.html', root:ROOT
console.log ">>> app.html (for #{request.path})"
app.get '*/$', serveIndex
app.get '/craft/*', serveIndex
app.get '*', (request, response)->
extension = path.extname(request.path)
contentType = {