Fix reinforced obsidian recipe
This commit is contained in:
+4
-1
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user