Skip to content

Commit

Permalink
Update API URL in JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
wnelson03 committed May 13, 2023
1 parent d1cbfa7 commit ebffedc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<button type="button" onclick="newregistration()"> Add WebAuthn</button>
<script src="./webauthn.js"></script>
<script>
fetch('http://localhost/api/v1/self', {
fetch('./api/v1/self', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
Expand Down
2 changes: 1 addition & 1 deletion login.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
const email = form.elements.email.value;
const password = form.elements.password.value;

fetch('http://localhost/api/v1/auth/login', {
fetch('./api/v1/auth/login', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
Expand Down
2 changes: 1 addition & 1 deletion register.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
const email = form.elements.email.value;
const password = form.elements.password.value;

fetch('http://localhost/api/v1/auth/register', {
fetch('./api/v1/auth/register', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
Expand Down

0 comments on commit ebffedc

Please sign in to comment.