Tweaked server for Glitch

This commit is contained in:
George Mandis 2021-11-29 01:08:47 -08:00
parent 1a9c60a4d6
commit b429c213b8

View File

@ -8,11 +8,11 @@ const app = express();
// but feel free to use whatever libs or frameworks you'd like through `package.json`.
// http://expressjs.com/en/starter/static-files.html
app.use(express.static("output"));
app.use(express.static("public"));
// http://expressjs.com/en/starter/basic-routing.html
app.get("/", function(request, response) {
response.sendFile(__dirname + "/output/index.html");
response.sendFile(__dirname + "/public/index.html");
});
// listen for requests :)