File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const AdminDashboard: React.FC = () => {
11
11
const fetchAds = async ( ) => {
12
12
try {
13
13
const token = localStorage . getItem ( 'token' ) ;
14
- const response = await axios . get ( '/ api/panel/notifications' , {
14
+ const response = await axios . get ( 'https:// api.contigosanmarcos.com /panel/notifications' , {
15
15
headers : {
16
16
'Authorization' : `${ token } ` ,
17
17
} ,
@@ -36,7 +36,7 @@ const AdminDashboard: React.FC = () => {
36
36
37
37
const handleDelete = async ( index : number ) => {
38
38
const adToDelete = ads [ index ] ;
39
- const response = await fetch ( `/ api/panel/notifications/${ adToDelete . id } ` , {
39
+ const response = await fetch ( `https:// api.contigosanmarcos.com /panel/notifications/${ adToDelete . id } ` , {
40
40
method : 'DELETE' ,
41
41
headers : {
42
42
'Authorization' : `${ localStorage . getItem ( 'token' ) } ` ,
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const Dashboard: React.FC = () => {
47
47
48
48
try {
49
49
const token = localStorage . getItem ( 'token' ) ;
50
- await axios . post ( '/ api/panel/notifications' , payload , {
50
+ await axios . post ( 'https:// api.contigosanmarcos.com /panel/notifications' , payload , {
51
51
headers : {
52
52
'Content-Type' : 'application/json' ,
53
53
'Authorization' : `${ token } ` ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const Login: React.FC = () => {
15
15
username : username ,
16
16
password : password ,
17
17
} ;
18
- const response = await axios . post ( '/ api/auth/login' , payload , {
18
+ const response = await axios . post ( 'https:// api.contigosanmarcos.com /auth/login' , payload , {
19
19
headers : {
20
20
'Content-Type' :'application/json'
21
21
}
You can’t perform that action at this time.
0 commit comments