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