diff --git a/app.js b/app.js index 1474d5db..b10a703f 100644 --- a/app.js +++ b/app.js @@ -3,7 +3,7 @@ /* MIT license: http://opensource.org/licenses/MIT /* ----------------------------------------------- */ - const[express,alloy,http,fs,path,char_insert]=[require('express'),require('alloyproxy'),require('http'),require('fs'),require('path'),require('./src/charinsert.js')],[app,config]=[express(),JSON.parse(fs.readFileSync('./config.json',{encoding:'utf8'}))],server=http.createServer(app),localprox=new alloy({prefix:'/fetch/',request:[],response:[],injection:!0}); +const[express,alloy,http,fs,path,char_insert]=[require('express'),require('alloyproxy'),require('http'),require('fs'),require('path'),require('./src/charinsert.js')],[app,config]=[express(),JSON.parse(fs.readFileSync('./config.json',{encoding:'utf8'}))],server=http.createServer(app),localprox=new alloy({prefix:'/fetch/',error: (proxy) => { return proxy.res.send(fs.readFileSync(path.join(__dirname, 'views', 'error.html'), 'utf8'));},request:[],response:[],injection:!0}); app.use(localprox.app); diff --git a/views/error.html b/views/error.html index 91161fde..36f60bd3 100644 --- a/views/error.html +++ b/views/error.html @@ -9,20 +9,20 @@ - + - - - + + + - + - - - + + + @@ -119,7 +119,7 @@