🍕 Checkpoint

./server.js:7435365/248
This commit is contained in:
Glitch (hello-express) 2019-12-16 19:05:18 +00:00
parent 30930b4ced
commit ce75066657

View File

@ -16,6 +16,10 @@ app.get("/", function(request, response) {
response.sendFile(__dirname + "/views/index.html");
});
app.get("/newreading", function(request, response) {
response.status(200).send('GlitchApp Success').end();
});
// listen for requests :)
const listener = app.listen(process.env.PORT, function() {
console.log("Your app is listening on port " + listener.address().port);