Skip to content

Commit

Permalink
chore: add log to check api url
Browse files Browse the repository at this point in the history
  • Loading branch information
binodnepali committed Apr 29, 2024
1 parent 6e94d3b commit 5992353
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/getProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Profile } from "../types/Profile.ts";
export const getProfile = async () => {
const baseurl = Deno.env.get("BASE_URL") || "http://localhost:8000/api";

console.log("baseurl", baseurl);

const response = await fetch(`${baseurl}/profile`);
return await response.json() as Profile;
};
Expand Down

0 comments on commit 5992353

Please sign in to comment.