mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-12 11:30:01 -04:00
Minor Edit
- Removed deprecated code with Express
This commit is contained in:
parent
da7d959473
commit
41fb88a4a4
1 changed files with 2 additions and 2 deletions
4
app.js
4
app.js
|
@ -23,7 +23,7 @@ app.get('/', async(req, res, t) => res.send(fs.readFileSync(path.join(__dirname,
|
|||
app.use(char_insert.static(path.join(__dirname, 'views')));
|
||||
|
||||
app.use(function(req, res) {
|
||||
res.send(fs.readFileSync(path.join(__dirname, 'views', 'error.html'), 'utf8'), 404);
|
||||
res.status(404, res.send(fs.readFileSync(path.join(__dirname, 'views', 'error.html'), 'utf8')));
|
||||
});
|
||||
|
||||
localprox.ws(server);
|
||||
|
@ -237,4 +237,4 @@ atob = (str) => {
|
|||
return str;
|
||||
};
|
||||
|
||||
*/
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue