Skip to content

Commit f33bf12

Browse files
authored
Merge pull request #17 from blaybus-hackathon/feat/admin-caregiver-pages
fix : fix test data api
2 parents 7f0998c + 3d536a7 commit f33bf12

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/SignUp/SignTest.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState } from 'react';
2-
import axios from 'axios';
2+
import { request } from '@/api';
33
import { Button } from '@/components/ui/button';
44
import { Input } from '@/components/ui/input';
55
import AddressSearch from '@/components/SignUp/AddressSearch';
@@ -113,14 +113,14 @@ export default function SignTest({ onNext, onPrev }) {
113113
};
114114

115115
try {
116-
const response = await request('POST', '/sign/up/helper', requestData)
117-
console.log('Successfully signed up:', response);
116+
const response = await request('post', '/sign/up/helper', requestData);
117+
console.log(response);
118118
} catch (error) {
119-
console.error('Error signing up:', error);
119+
console.error('API 요청 실패:', error);
120120
}
121121

122122
console.log('requestData:', requestData); // requestData 객체 출력
123-
123+
};
124124

125125
const toggleLicense = (licenseType) => {
126126
setFormData((prev) => {

0 commit comments

Comments
 (0)