Minor Edit

- Removed deprecated code with Express
This commit is contained in:
Quite A Fancy Emerald 2021-02-07 20:33:43 -08:00 committed by GitHub
parent da7d959473
commit 41fb88a4a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
app.js
View file

@ -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;
};
*/
*/