Skip to content

Commit

Permalink
hot-fix: for test
Browse files Browse the repository at this point in the history
  • Loading branch information
hanlee55 committed Jun 1, 2024
1 parent 774836b commit 05a7c27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/api/ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function makePaymentId(price: number): Promise<string> {
const id = localStorage.getItem("id");
const password = localStorage.getItem("password");
axios
.post<string>("/payments/", {
.post<string>("https://payment-dev.pycon.kr/payments/", {
"price": price
}, {
headers: {
Expand All @@ -36,7 +36,7 @@ export function completePayment(paymentId: string): Promise<void> {
return new Promise((resolve, reject) => {
// eslint-disable-next-line no-unreachable
axios
.post<void>("/ticket/purchase")
.post<void>("https://payment-dev.pycon.kr/ticket/purchase")
.then((response) => {
resolve();
})
Expand All @@ -54,7 +54,7 @@ export function refundPayment(paymentId: string): Promise<void> {
const id = localStorage.getItem("id");
const password = localStorage.getItem("password");
axios
.post<void>(`/payments/${paymentId}/refund/`, {}, {
.post<void>(`https://payment-dev.pycon.kr/payments/${paymentId}/refund/`, {}, {
headers: {
// Authorization
// id:pw => base64
Expand All @@ -78,7 +78,7 @@ export function listPayments(): Promise<Payment[]> {
const id = localStorage.getItem("id");
const password = localStorage.getItem("password");
axios
.get<APIPayment[]>("/payments/", {
.get<APIPayment[]>("https://payment-dev.pycon.kr/payments/", {
headers: {
// Authorization
// id:pw => base64
Expand Down
2 changes: 1 addition & 1 deletion src/api/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getErrorMessage } from "api";
export function signIn(id: string, password: string): Promise<void> {
return new Promise((resolve, reject) => {
axios
.get<APISponsor[]>("/login/", {
.get<APISponsor[]>("https://payment-dev.pycon.kr/login/", {
headers: {
// Authorization
// id:pw => base64
Expand Down

0 comments on commit 05a7c27

Please sign in to comment.