From 05a7c27237293c9ea07ca61cdb6dd2c1cb24a491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Han=20Lee=20=7C=20=EC=9D=B4=ED=95=9C=EA=B2=B0?= <76910100+hanlee55@users.noreply.github.com> Date: Sat, 1 Jun 2024 17:26:25 +0900 Subject: [PATCH] hot-fix: for test --- src/api/ticket.ts | 8 ++++---- src/api/user.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/ticket.ts b/src/api/ticket.ts index c8dceb1..7c9155d 100644 --- a/src/api/ticket.ts +++ b/src/api/ticket.ts @@ -9,7 +9,7 @@ export function makePaymentId(price: number): Promise { const id = localStorage.getItem("id"); const password = localStorage.getItem("password"); axios - .post("/payments/", { + .post("https://payment-dev.pycon.kr/payments/", { "price": price }, { headers: { @@ -36,7 +36,7 @@ export function completePayment(paymentId: string): Promise { return new Promise((resolve, reject) => { // eslint-disable-next-line no-unreachable axios - .post("/ticket/purchase") + .post("https://payment-dev.pycon.kr/ticket/purchase") .then((response) => { resolve(); }) @@ -54,7 +54,7 @@ export function refundPayment(paymentId: string): Promise { const id = localStorage.getItem("id"); const password = localStorage.getItem("password"); axios - .post(`/payments/${paymentId}/refund/`, {}, { + .post(`https://payment-dev.pycon.kr/payments/${paymentId}/refund/`, {}, { headers: { // Authorization // id:pw => base64 @@ -78,7 +78,7 @@ export function listPayments(): Promise { const id = localStorage.getItem("id"); const password = localStorage.getItem("password"); axios - .get("/payments/", { + .get("https://payment-dev.pycon.kr/payments/", { headers: { // Authorization // id:pw => base64 diff --git a/src/api/user.ts b/src/api/user.ts index 72941f8..8062227 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -5,7 +5,7 @@ import { getErrorMessage } from "api"; export function signIn(id: string, password: string): Promise { return new Promise((resolve, reject) => { axios - .get("/login/", { + .get("https://payment-dev.pycon.kr/login/", { headers: { // Authorization // id:pw => base64