updated the server api path

This commit is contained in:
Manesh 2025-09-19 12:11:06 +00:00
parent a197d6289d
commit e8301c22cb
4 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@ const ComponentsAuthLoginForm = () => {
setLoading(true);
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
const data = res.data;

View File

@ -34,7 +34,7 @@ const ComponentsAuthRegisterForm = () => {
try {
// ✅ 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,
email: form.email,
password: form.password,

View File

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

4
package-lock.json generated
View File

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