File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ export default function PaperSliver({
150150 try {
151151 setLoading ( true ) ;
152152 const response = await fetch (
153- `http://localhost:3000 /api/adminRequest/papers/full/${ paperData . id } ` ,
153+ `/api/adminRequest/papers/full/${ paperData . id } ` ,
154154 {
155155 method : "GET" ,
156156 headers : {
@@ -191,7 +191,7 @@ export default function PaperSliver({
191191
192192 try {
193193 const response = await fetch (
194- `http://localhost:3000 /api/adminRequest/papers/full/${ paperData . id } ` ,
194+ `/api/adminRequest/papers/full/${ paperData . id } ` ,
195195 {
196196 method : "PUT" ,
197197 headers : {
@@ -241,7 +241,7 @@ export default function PaperSliver({
241241
242242 try {
243243 const response = await fetch (
244- `http://localhost:3000 /api/adminRequest/papers/${ paperData . id } ` ,
244+ `/api/adminRequest/papers/${ paperData . id } ` ,
245245 {
246246 method : "DELETE" ,
247247 headers : {
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export default function DatabaseEntryPreviewPage() {
9494 setLoading ( true ) ;
9595 try {
9696 const response = await fetch (
97- "http://localhost:3000 /api/adminRequest/papers/full" ,
97+ "/api/adminRequest/papers/full" ,
9898 {
9999 method : "POST" ,
100100 headers : {
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ export default function ModifyPage() {
3838 const token = localStorage . getItem ( "jwtToken" ) ;
3939
4040 const apiReq = search
41- ? "http://localhost:3000 /api/adminRequest/papers/full"
42- : `http://localhost:3000 /api/adminRequest/papers/filter?${ search } ` ;
41+ ? "/api/adminRequest/papers/full"
42+ : `/api/adminRequest/papers/filter?${ search } ` ;
4343
4444 try {
4545 const response = await fetch ( apiReq , {
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export default function UploadPage() {
8181 try {
8282 setLoading ( true ) ;
8383 const response = await fetch (
84- "http://localhost:3000 /api/adminRequest/parseRequest" ,
84+ "/api/adminRequest/parseRequest" ,
8585 {
8686 method : "POST" ,
8787 headers : {
You can’t perform that action at this time.
0 commit comments