Skip to content

Commit b873cd7

Browse files
committed
3
1 parent cc8f596 commit b873cd7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/routes/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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',
@@ -30,7 +30,7 @@
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'

src/routes/locations/+page.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
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',
@@ -64,7 +64,7 @@
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',
@@ -90,7 +90,7 @@
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',
@@ -131,7 +131,7 @@
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',

src/routes/register/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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'

0 commit comments

Comments
 (0)