From 6175c4e7f87251d327ba18d6e5d5aeef320ffb2f Mon Sep 17 00:00:00 2001 From: Yutsuo Date: Fri, 28 Dec 2018 13:13:27 -0200 Subject: [PATCH] Phase III Task 4 --- nginx2/html/admin.html | 8 ++++++++ node/app.js | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 nginx2/html/admin.html diff --git a/nginx2/html/admin.html b/nginx2/html/admin.html new file mode 100644 index 0000000..4d4dee1 --- /dev/null +++ b/nginx2/html/admin.html @@ -0,0 +1,8 @@ + +
+

DEAR, ADMIN

+
+
+

You have access to restricted contents!

+
+ \ No newline at end of file diff --git a/node/app.js b/node/app.js index 8f3a1cf..c9d5b3b 100755 --- a/node/app.js +++ b/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)