Skip to content

Commit

Permalink
fix: api 엔드포인트 주소 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ww8007 committed Mar 1, 2023
1 parent 267dd7b commit 30218f4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
14 changes: 7 additions & 7 deletions src/lib/api/bonus.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import client from './client';
import type { BonusAPI } from '../../interface';
export const getBonus = ({ id, name, cookies, thisYear, tmGbn }: BonusAPI) => {
const data = JSON.stringify({
userNm: name,
cookies: cookies,
yy: thisYear,
tmGbn
});
return client.post('/findpointlist', data);
const data = JSON.stringify({
userNm: name,
cookies: cookies,
yy: thisYear,
tmGbn,
});
return client.post('/find/point', data);
};
24 changes: 12 additions & 12 deletions src/lib/api/calendar.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import client from './client';
import type { CalendarAPI } from '../../interface';
export const sendDates = ({
id,
isWeekend,
sendingToday,
dateList,
cookies,
id,
isWeekend,
sendingToday,
dateList,
cookies,
}: CalendarAPI) => {
const dates = JSON.stringify({
date_list: dateList,
is_weekend: isWeekend,
outStayAplyDt: sendingToday,
cookies: cookies,
});
return client.post('/sendstayout', dates);
const dates = JSON.stringify({
date_list: dateList,
is_weekend: isWeekend,
outStayAplyDt: sendingToday,
cookies: cookies,
});
return client.post('/send/stayout', dates);
};

0 comments on commit 30218f4

Please sign in to comment.