Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vc-anandkothari authored Nov 26, 2024
1 parent 7d31968 commit 1bb7cbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ const express = require('express');
const bodyParser = require('body-parser');

const app = express();
const port = 3002;
const port = 3000;

// Built-in Middleware to parse JSON data in the request body
app.use(bodyParser.json());

// Use the routes in your app
app.get('/', (req, res) => {
res.send("Hello! from Node JS Application");
res.send(`Hello! from Node JS Application - ${PORT}`);
});

app.get('/cars', (req, res) => {
res.send("Response from Cars API");
});
Expand Down

0 comments on commit 1bb7cbe

Please sign in to comment.