Skip to content

Commit ebffedc

Browse files
committed
Update API URL in JavaScript
1 parent d1cbfa7 commit ebffedc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<button type="button" onclick="newregistration()"> Add WebAuthn</button>
99
<script src="./webauthn.js"></script>
1010
<script>
11-
fetch('http://localhost/api/v1/self', {
11+
fetch('./api/v1/self', {
1212
method: 'POST',
1313
headers: {
1414
'Content-Type': 'application/x-www-form-urlencoded'

login.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
const email = form.elements.email.value;
3434
const password = form.elements.password.value;
3535

36-
fetch('http://localhost/api/v1/auth/login', {
36+
fetch('./api/v1/auth/login', {
3737
method: 'POST',
3838
headers: {
3939
'Content-Type': 'application/x-www-form-urlencoded'

register.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
const email = form.elements.email.value;
2727
const password = form.elements.password.value;
2828

29-
fetch('http://localhost/api/v1/auth/register', {
29+
fetch('./api/v1/auth/register', {
3030
method: 'POST',
3131
headers: {
3232
'Content-Type': 'application/x-www-form-urlencoded'

0 commit comments

Comments
 (0)