Skip to content

Commit

Permalink
🚀 add redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
dj0nny committed Jul 28, 2019
1 parent bd0e795 commit e31b69e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hacker-news-clone/src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ Vue.use(Router);

export default new Router({
routes: [
{
path: '/',
redirect: '/news',
},
{
path: '/news/:id',
name: 'news-detail',
Expand Down

0 comments on commit e31b69e

Please sign in to comment.