Skip to content

Commit

Permalink
fix: port number
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhatech002 committed Feb 18, 2024
1 parent 52f064c commit 75d73a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NodeJs/02-http-server/backend/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import http from "http";
import internsData from "./data/data.json" assert { type: "json" };

const SERVER_PORT = "6969";
const SERVER_PORT = "2002";

const server = http.createServer((request, response) => {
if (request.url === "/interns") {
Expand Down
2 changes: 1 addition & 1 deletion NodeJs/02-http-server/interns-profile/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function App() {
}, []);

const fetchData = async () => {
const getData = await fetch("http://localhost:6969/interns");
const getData = await fetch("http://localhost:2002/interns");

const jsonData = await getData.json();
console.log(jsonData);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Header = () => {
<button className="bg-[#0dba4b] text-white font-semibold px-4 py-1 rounded-md">
<a
target="_blank"
href="https://github.com/vedhatech002/CYBERDUDE-CHALLENGES/tree/main/NodeJs/02-htttp-server"
href="https://github.com/vedhatech002/CYBERDUDE-CHALLENGES/tree/main/NodeJs/02-http-server"
>
GitHub
</a>
Expand Down

0 comments on commit 75d73a2

Please sign in to comment.