Skip to content

Commit 65010bd

Browse files
Merge pull request #5 from TeamProjectsReact/CheckingBugs-ver1
Checking bugs ver1
2 parents a5cadb3 + 6fde0f3 commit 65010bd

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

BackEndMysqlNoMVC/server/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ app.use(cors())
2828

2929
// all endpoint start
3030

31-
app.post('/SignUp', (req, res) => {
31+
app.post('/auth/SignUp', (req, res) => {
3232
// console.log(req.body)
3333

3434
// table will be change according to your table name
@@ -74,7 +74,7 @@ app.post('/SignUp', (req, res) => {
7474
})
7575
})
7676

77-
app.post('/SignIn', (req, res) => {
77+
app.post('/auth/SignIn', (req, res) => {
7878
const tableName = "users"
7979
const columnData = { email: req.body.email }
8080

LoginSignUp/SignIn.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const SignIn = () => {
2222
// login to system
2323

2424
try{
25-
const res = await axios.post('http://localhost:8081/SignIn', LoginData)
25+
const res = await axios.post('http://localhost:8081/auth/SignIn', LoginData)
2626

2727
const loginToken = res.data.Token;
2828

LoginSignUp/SignUp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const SignUp = () => {
2323
// signup to system
2424

2525
try{
26-
const res = await axios.post('http://localhost:8081/SignUp', SignUpData)
26+
const res = await axios.post('http://localhost:8081/auth/SignUp', SignUpData)
2727
.then(res => {
2828
if(res.data.Status === "Success"){
2929
alert("Registation Successfull")

LoginSignUpTW/SignIn.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const SignIn = () => {
1919
// login to system
2020

2121
try{
22-
const res = await axios.post('http://localhost:8081/SignIn', LoginData)
22+
const res = await axios.post('http://localhost:8081/auth/SignIn', LoginData)
2323

2424
const loginToken = res.data.Token;
2525

LoginSignUpTW/SignUp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const SignUp = () => {
1919
// signup to system
2020

2121
try{
22-
const res = await axios.post('http://localhost:8081/SignUp', SignUpData)
22+
const res = await axios.post('http://localhost:8081/auth/SignUp', SignUpData)
2323
.then(res => {
2424
if(res.data.Status === "Success"){
2525
alert("Registation Successfull")

0 commit comments

Comments
 (0)