Skip to content

Commit c2fd58d

Browse files
authored
Merge pull request #49 from zacharyLYH/dev
Add console.log statement to display base URL
2 parents 512cb59 + 3d91436 commit c2fd58d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/api/code/submit/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export async function POST(req: Request) {
7979
// Extract the host and protocol from the incoming request
8080
const url = new URL(req.url);
8181
const baseUrl = `${url.protocol}//${url.host}`;
82-
82+
console.log("BASE URL: ", baseUrl);
8383
// Use the base URL for Axios requests
8484
axios.put(`${baseUrl}/api/increment/submit`, {});
8585

0 commit comments

Comments
 (0)