Alaguraj0361 2025-09-23 17:08:04 +05:30
commit eecffff110
4 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@ const ComponentsAuthLoginForm = () => {
setLoading(true); setLoading(true);
try { try {
const res = await axios.post('http://localhost:3020/api/auth/login', formData); const res = await axios.post('https://api.crawlerx.co/api/auth/login', formData);
// ✅ Assuming backend returns token // ✅ Assuming backend returns token
const data = res.data; const data = res.data;

View File

@ -34,7 +34,7 @@ const ComponentsAuthRegisterForm = () => {
try { try {
// ✅ Send POST request via Axios // ✅ Send POST request via Axios
const response = await axios.post('http://localhost:3020/api/auth/signup', { const response = await axios.post('https://api.crawlerx.co/api/auth/signup', {
name: form.name, name: form.name,
email: form.email, email: form.email,
password: form.password, password: form.password,

View File

@ -35,7 +35,7 @@ const ComponentsAuthChangePasswordForm = () => {
// 👉 Axios call with Bearer token // 👉 Axios call with Bearer token
const res = await axios.post( const res = await axios.post(
`http://localhost:3020/api/auth/change-password`, `https://api.crawlerx.co/api/auth/change-password`,
formData, formData,
{ {
headers: { headers: {

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{ {
"name": "CrawlerX", "name": "crawlerx",
"version": "0.1.0", "version": "0.1.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "CrawlerX", "name": "crawlerx",
"version": "0.1.0", "version": "0.1.0",
"dependencies": { "dependencies": {
"@emotion/react": "^11.10.6", "@emotion/react": "^11.10.6",