Skip to content

Commit

Permalink
Merge pull request #10 from iKAN2025/main
Browse files Browse the repository at this point in the history
Profile Md
  • Loading branch information
jm1021 authored Jul 9, 2024
2 parents 9e902c2 + 6c95daa commit 20c0935
Show file tree
Hide file tree
Showing 3 changed files with 392 additions and 292 deletions.
9 changes: 1 addition & 8 deletions _includes/create_user.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Create User</title>
</head>
<body>
<form id="userForm">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required><br>
Expand Down Expand Up @@ -35,7 +29,7 @@
};

try {
const response = await fetch('http://127.0.0.1:8086/api/user', {
const response = await fetch('http://127.0.0.1:8087/api/user', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
Expand All @@ -55,5 +49,4 @@
}
}
</script>
</body>
</html>
7 changes: 3 additions & 4 deletions assets/js/api/config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
export var pythonURI;
if (location.hostname === "localhost") {
pythonURI = "http://localhost:8086";
pythonURI = "http://localhost:8087";
} else if (location.hostname === "127.0.0.1") {
pythonURI = "http://127.0.0.1:8086";
pythonURI = "http://127.0.0.1:8087";
} else {
pythonURI = "http://127.0.0.1:8086";
pythonURI = "http://127.0.0.1:8087";
}

export var javaURI;
if (location.hostname === "localhost") {
javaURI = "http://localhost:8085";
Expand Down
Loading

0 comments on commit 20c0935

Please sign in to comment.