Skip to content

Commit

Permalink
fix: API_PATH로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kimeodml committed Nov 9, 2023
1 parent bbe261d commit d4233df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mocks/api/shopsResult.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { http, HttpResponse } from 'msw';
import { API_PATH } from 'config/constants';
import shopsResultData from './data/shopsResultData';

interface RequestBody {
Expand All @@ -7,7 +8,7 @@ interface RequestBody {
}

const handlers = [
http.post('https://api.stage.jjbaksa.com/shops', async ({ request }) => {
http.post(`${API_PATH}/shops`, async ({ request }) => {
const body = await request.json() as RequestBody;

body.lat = 37.71;
Expand Down

0 comments on commit d4233df

Please sign in to comment.