Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added new route.

  • Loading branch information...
commit 8a928cca6eeb83ec1df90da1589090ca46c57d52 1 parent 9cdf29f
@niczak authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 hello.js
View
8 hello.js
@@ -4,10 +4,16 @@ var app = express.createServer(express.logger());
app.get('/', function(request, response)
{
- console.log("Request received...\n")
+ console.log("Request received at base url...\n")
response.send('Hello World via Node.js and Express!');
});
+app.get("/test", function(request, response)
+{
+ console.log("Request received at /test...\n");
+ response.send("Welcome to our test environment.");
+});
+
var port = process.env.PORT || 3000;
app.listen(port, function()
{
Please sign in to comment.
Something went wrong with that request. Please try again.