File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
< button type ="button " onclick ="newregistration() "> Add WebAuthn</ button >
9
9
< script src ="./webauthn.js "> </ script >
10
10
< script >
11
- fetch ( 'http://localhost /api/v1/self' , {
11
+ fetch ( '. /api/v1/self' , {
12
12
method : 'POST' ,
13
13
headers : {
14
14
'Content-Type' : 'application/x-www-form-urlencoded'
Original file line number Diff line number Diff line change 33
33
const email = form . elements . email . value ;
34
34
const password = form . elements . password . value ;
35
35
36
- fetch ( 'http://localhost /api/v1/auth/login' , {
36
+ fetch ( '. /api/v1/auth/login' , {
37
37
method : 'POST' ,
38
38
headers : {
39
39
'Content-Type' : 'application/x-www-form-urlencoded'
Original file line number Diff line number Diff line change 26
26
const email = form . elements . email . value ;
27
27
const password = form . elements . password . value ;
28
28
29
- fetch ( 'http://localhost /api/v1/auth/register' , {
29
+ fetch ( '. /api/v1/auth/register' , {
30
30
method : 'POST' ,
31
31
headers : {
32
32
'Content-Type' : 'application/x-www-form-urlencoded'
You can’t perform that action at this time.
0 commit comments