Browse Source

Phase III Task 4

master
Yutsuo 7 years ago
parent
commit
6175c4e7f8
  1. 8
      nginx2/html/admin.html
  2. 2
      node/app.js

8
nginx2/html/admin.html

@ -0,0 +1,8 @@
<body>
<div>
<h1>DEAR, ADMIN</h1>
</div>
<div class="form-header" style="background-color:black; color:white; padding:20px; left:50%; ">
<h2>You have access to restricted contents!</h2>
</div>
</body>

2
node/app.js

@ -218,7 +218,7 @@ restrictedRoutes.use(function (req, res, next) {
// Restricted endpoint
restrictedRoutes.get('/access', (req, res) => {
res.status(200).json([{secret:'you can see this message if you have access'}])
res.status(200).json([{secret:'You have access to restricted contents!'}])
});
// Restricted route root test (KISS)

Loading…
Cancel
Save