Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions BackEndMysqlNoMVC/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ app.use(cors())

// all endpoint start

app.post('/SignUp', (req, res) => {
app.post('/auth/SignUp', (req, res) => {
// console.log(req.body)

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

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

Expand Down
2 changes: 1 addition & 1 deletion LoginSignUp/SignIn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const SignIn = () => {
// login to system

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

const loginToken = res.data.Token;

Expand Down
2 changes: 1 addition & 1 deletion LoginSignUp/SignUp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const SignUp = () => {
// signup to system

try{
const res = await axios.post('http://localhost:8081/SignUp', SignUpData)
const res = await axios.post('http://localhost:8081/auth/SignUp', SignUpData)
.then(res => {
if(res.data.Status === "Success"){
alert("Registation Successfull")
Expand Down
2 changes: 1 addition & 1 deletion LoginSignUpTW/SignIn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const SignIn = () => {
// login to system

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

const loginToken = res.data.Token;

Expand Down
2 changes: 1 addition & 1 deletion LoginSignUpTW/SignUp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const SignUp = () => {
// signup to system

try{
const res = await axios.post('http://localhost:8081/SignUp', SignUpData)
const res = await axios.post('http://localhost:8081/auth/SignUp', SignUpData)
.then(res => {
if(res.data.Status === "Success"){
alert("Registation Successfull")
Expand Down