Skip to content

Commit

Permalink
Add console.log statement to display base URL
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyLYH committed Dec 13, 2023
1 parent b2bf288 commit 3d91436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/code/submit/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export async function POST(req: Request) {
// Extract the host and protocol from the incoming request
const url = new URL(req.url);
const baseUrl = `${url.protocol}//${url.host}`;

console.log("BASE URL: ", baseUrl);
// Use the base URL for Axios requests
axios.put(`${baseUrl}/api/increment/submit`, {});

Expand Down

0 comments on commit 3d91436

Please sign in to comment.