updated the server api path
This commit is contained in:
parent
a197d6289d
commit
e8301c22cb
@ -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;
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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
4
package-lock.json
generated
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user