Skip to content

Commit

Permalink
updated get controller
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushjaiswal1610 committed Mar 17, 2024
1 parent 5bf42f3 commit 80e77f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ app.use("/api/otp", OtpRouter);
app.use("/api/user", UserRouter);

app.get("/", (req: Request, res: Response) => {
console.log("pinged");

res.send("Welcome to Virtual Connect Server!!");
});

Expand Down
4 changes: 4 additions & 0 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ import VerifyOtp from "./components/otp/verifyOtp";
import Otp from "./components/otp";
import Login from "./components/login";

const uri = process.env.REACT_APP_API_URL;

function App() {
fetch(`${uri}/`, {
method: "GET",
});

return (
<div className="App">
Expand Down

0 comments on commit 80e77f6

Please sign in to comment.