Skip to content

Commit

Permalink
Merge branch 'main' of github.com:TnP-MACE/macebook-client into main
Browse files Browse the repository at this point in the history
  • Loading branch information
roshanrajeev committed May 2, 2021
2 parents 1bd8744 + acb1a53 commit 74bd952
Show file tree
Hide file tree
Showing 5 changed files with 217 additions and 152 deletions.
2 changes: 1 addition & 1 deletion components/Header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Header = () => {
<div>
<ul className={styles.navbarNav}>
<li className={styles.navbarLink}><Link href="/login"><a>Login</a></Link></li>
<li className={styles.navbarLink}><Link href="/registration"><a>Register</a></Link></li>
<li className={styles.navbarLink}><Link href="/registration"><a>Signup</a></Link></li>
</ul>
</div>}
</nav>
Expand Down
13 changes: 13 additions & 0 deletions mock/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,19 @@ router.get('/logout', auth, (req, res) => {
}))
res.status(200).send()
})
router.post('/registration',(req,res)=>{
let newuserdetails ={
name:req.body.name,
username:req.body.username,
phone:req.body.phonenumber,
location:req.body.location,
email:req.body.email,
password:req.body.password
}

console.log(newuserdetails)

})

router.post('/registration',(req,res)=>{
let newuserdetails =new user({
Expand Down
95 changes: 78 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
"dependencies": {
"axios": "^0.21.1",
"bootstrap": "^5.0.0-beta3",
"formik": "^2.2.6",
"next": "10.1.3",
"react": "17.0.2",
"react-contenteditable": "^3.3.5",
"react-dom": "17.0.2",
"sass": "^1.32.11",
"twemoji": "^13.0.2"
"twemoji": "^13.0.2",
"yup": "^0.32.9"
}
}
Loading

0 comments on commit 74bd952

Please sign in to comment.