Skip to content

Commit

Permalink
feat: adding link for each page
Browse files Browse the repository at this point in the history
  • Loading branch information
willmendesneto committed Aug 7, 2017
1 parent c672afb commit 8f48e43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions first-page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var server = http.createServer(function (request, response) {
response.write(`
<h1>First page</h1>
<a href="/">Back to home page</a>
<a href="/second">Second page</a>
`);
response.end();
});
Expand Down
1 change: 1 addition & 0 deletions home-page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var server = http.createServer(function (request, response) {
response.writeHeader(200, {"Content-Type": "text/html"});
response.write(`
<h1>Home page</h1>
<p>This is a simple image accessing 'static' endpoint</p>
<img src="/static/images/horse.png" />
<a href="/first">First page</a><br/>
<a href="/second">Second page</a>
Expand Down
1 change: 1 addition & 0 deletions second-page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var server = http.createServer(function (request, response) {
response.write(`
<h1>Second page</h1>
<a href="/">Back to home page</a>
<a href="/first">First page</a>
`);
response.end();
});
Expand Down

0 comments on commit 8f48e43

Please sign in to comment.