File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 77 let jwtToken = " " ;
88 async function roleUser () {
99 try {
10- const response = await fetch (' http ://localhost:3000 /users/me' , {
10+ const response = await fetch (' https ://secure-web-dev-backend-7x99.onrender.com /users/me' , {
1111 method: ' GET' ,
1212 headers: {
1313 ' Content-Type' : ' application/json' ,
3030 async function handleSubmit (event ) {
3131 event .preventDefault ();
3232 try {
33- const response = await fetch (' http ://localhost:3000 /users/login' , {
33+ const response = await fetch (' https ://secure-web-dev-backend-7x99.onrender.com /users/login' , {
3434 method: ' POST' ,
3535 headers: {
3636 ' Content-Type' : ' application/json'
Original file line number Diff line number Diff line change 2020 onMount (handleLocations);
2121 async function handleLocations () {
2222 try {
23- const response = await fetch (' http ://localhost:3000 /locations' , {
23+ const response = await fetch (' https ://secure-web-dev-backend-7x99.onrender.com /locations' , {
2424 method: ' GET' ,
2525 headers: {
2626 ' Content-Type' : ' application/json' ,
6464 }
6565 async function handleDelete (id ) {
6666 try {
67- const response = await fetch (` http ://localhost:3000 /locations/${ id} ` , {
67+ const response = await fetch (` https ://secure-web-dev-backend-7x99.onrender.com /locations/${ id} ` , {
6868 method: ' DELETE' ,
6969 headers: {
7070 ' Content-Type' : ' application/json' ,
9090 }
9191 async function handleModify () {
9292 try {
93- const response = await fetch (` http ://localhost:3000 /locations/${ id} ` , {
93+ const response = await fetch (` https ://secure-web-dev-backend-7x99.onrender.com /locations/${ id} ` , {
9494 method: ' PATCH' ,
9595 headers: {
9696 ' Content-Type' : ' application/json' ,
131131 }
132132 async function handleValidate () {
133133 try {
134- const response = await fetch (` http ://localhost:3000 /locations` , {
134+ const response = await fetch (` https ://secure-web-dev-backend-7x99.onrender.com /locations` , {
135135 method: ' POST' ,
136136 headers: {
137137 ' Content-Type' : ' application/json' ,
Original file line number Diff line number Diff line change 88 async function handleSubmit (event ) {
99 event .preventDefault ();
1010 try {
11- const response = await fetch (' http ://localhost:3000 /users/register' , {
11+ const response = await fetch (' https ://secure-web-dev-backend-7x99.onrender.com/ /users/register' , {
1212 method: ' POST' ,
1313 headers: {
1414 ' Content-Type' : ' application/json'
You can’t perform that action at this time.
0 commit comments