Skip to content

Commit b2ae2c5

Browse files
committed
modifed api endpoints, hopefully they work
1 parent 0adfa58 commit b2ae2c5

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

web/src/components/paper-sliver.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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: {

web/src/pages/DatabaseEntryPreviewPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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: {

web/src/pages/ModifyPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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, {

web/src/pages/UploadPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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: {

0 commit comments

Comments
 (0)