import VueRouter from 'vue-router'
import miComponent from './components/micomponent/micomponent'
import home from './layouts/home/home'
import AddCourse from './layouts/add-course/add-course'
import course from './layouts/course/course'

const router = new VueRouter({
    mode: 'history',
    routes: [
        { path: '/', component: home, isDefault: true },
        { path: '/test', component: miComponent },
        { path: '/course/add', component: AddCourse },
        { path: '/course/:id', name: 'course', component: course }
    ]
})

export { VueRouter, router }

@@ -318,16 +318,30 @@
 th: '/',
+ name: 'home',
  compone
@@ -393,16 +393,30 @@
 '/test',
+ name: 'test',
  compone
@@ -464,16 +464,36 @@
 se/add',
+ name: 'add-course',
  compone

Add names to the router urls