From 12324d34caa6ea13b09feb3b467780ff5d44b814 Mon Sep 17 00:00:00 2001 From: wkdghdwns199 Date: Fri, 13 Sep 2024 14:16:00 +0900 Subject: [PATCH] =?UTF-8?q?#13=20hotfix=20:=20BE=20API=20https=20=EB=A1=9C?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/api/sendToServer.ts | 32 ++++++++++++++------------ client/src/hooks/useCheckInStudent.tsx | 2 +- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/client/src/api/sendToServer.ts b/client/src/api/sendToServer.ts index b533399..0d85f19 100644 --- a/client/src/api/sendToServer.ts +++ b/client/src/api/sendToServer.ts @@ -1,19 +1,21 @@ -import axios, {AxiosResponse} from "axios"; -import {studentQr} from "../types/QrType/StudentQr"; +import axios, {AxiosResponse} from 'axios'; +import {studentQr} from '../types/QrType/StudentQr'; interface ServerResponse { - message: string | null; + message: string | null; } -export const sendToServer = (data: studentQr): Promise> => { - return axios - .post("http://34.47.97.81:8080/api/events/check-in",data) - .then((res) => { - console.log(res); - return res; - }) - .catch((error) => { - console.log(error); - throw error; - }) -} \ No newline at end of file +export const sendToServer = ( + data: studentQr, +): Promise> => { + return axios + .post('https://zepelown.site/api/events/check-in', data) + .then(res => { + console.log(res); + return res; + }) + .catch(error => { + console.log(error); + throw error; + }); +}; diff --git a/client/src/hooks/useCheckInStudent.tsx b/client/src/hooks/useCheckInStudent.tsx index a8a6e47..657656d 100644 --- a/client/src/hooks/useCheckInStudent.tsx +++ b/client/src/hooks/useCheckInStudent.tsx @@ -14,7 +14,7 @@ const useCheckInStudent = (eventId: string) => { const LoadCheckInStudent = () => { axios - .get(`http://34.47.97.81:8080/api/events/check-in/${eventId}?filter=ALL`) + .get(`https://zepelown.site/api/events/check-in/${eventId}?filter=ALL`) .then(res => { const CleanedData = res.data.data;