From a73656d795b1612a0652f44c92c24beb11d6db63 Mon Sep 17 00:00:00 2001 From: tanishmohanta <87773686+tanishtt@users.noreply.github.com> Date: Sun, 31 Mar 2024 18:23:16 +0530 Subject: [PATCH 1/5] Update users.js Updated user route, Learning ci/cd from your playlist. --- web/routes/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/routes/users.js b/web/routes/users.js index 283705f..73b971f 100644 --- a/web/routes/users.js +++ b/web/routes/users.js @@ -2,7 +2,7 @@ const express = require('express') const router = express.Router() /* GET users listing. */ -router.get('/users', function (req, res, next) { +router.get('/users/tanish', function (req, res, next) { res.send('respond with a resource') }) From 0d5d227a37fbf6b3a6023ad4693b7a6a35694a0c Mon Sep 17 00:00:00 2001 From: tanishmohanta <87773686+tanishtt@users.noreply.github.com> Date: Sun, 31 Mar 2024 18:31:46 +0530 Subject: [PATCH 2/5] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9404428..9b6ffde 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest # Define the steps for this job steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 name: 'Checkout repository' - name: 'Install Dependencies' @@ -46,7 +46,7 @@ jobs: working-directory: ./web runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 name: 'Checkout repository' - name: 'Install Dependencies' From 66d8c989acf153fb164c24287bed549d0a4b40fb Mon Sep 17 00:00:00 2001 From: tanishmohanta <87773686+tanishtt@users.noreply.github.com> Date: Sun, 31 Mar 2024 18:33:51 +0530 Subject: [PATCH 3/5] Update cd.yaml --- .github/workflows/cd.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index ff77245..56521c4 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -30,7 +30,7 @@ jobs: steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 name: 'Checkout repository' - uses: burnett01/rsync-deployments@23a557dceb19f9bb960ef40cf75cab5e9b37ec1f @@ -73,7 +73,7 @@ jobs: steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 name: 'Checkout repository' - uses: burnett01/rsync-deployments@23a557dceb19f9bb960ef40cf75cab5e9b37ec1f From 0ed277668cc3a71586a0aec74cb27158920b44e2 Mon Sep 17 00:00:00 2001 From: tanishmohanta <87773686+tanishtt@users.noreply.github.com> Date: Sun, 31 Mar 2024 19:41:52 +0530 Subject: [PATCH 4/5] Update routes.test.js --- web/tests/routes.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/tests/routes.test.js b/web/tests/routes.test.js index 637724a..73e268a 100644 --- a/web/tests/routes.test.js +++ b/web/tests/routes.test.js @@ -14,9 +14,9 @@ describe('New Endpoint', () => { const res = await request(app) .get('/ice-flakes') expect(res.body).toEqual({ - resource: 'ice-flakes', - count: 205, - shape: 'circle' + "count": 1005, + "resource": "ice-flakes", + "shape": "rectangle" }) expect(res.statusCode).toEqual(201) }) From cdc8d6f20dfbb78d40ca448fec69263a134b2568 Mon Sep 17 00:00:00 2001 From: tanishmohanta <87773686+tanishtt@users.noreply.github.com> Date: Sun, 31 Mar 2024 19:43:01 +0530 Subject: [PATCH 5/5] Update users.js --- web/routes/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/routes/users.js b/web/routes/users.js index 73b971f..26d706b 100644 --- a/web/routes/users.js +++ b/web/routes/users.js @@ -2,7 +2,7 @@ const express = require('express') const router = express.Router() /* GET users listing. */ -router.get('/users/tanish', function (req, res, next) { +router.get('/users/tanishmohanta99', function (req, res, next) { res.send('respond with a resource') })