Add projects feature
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
import Vue from 'vue'
|
||||
import Router from 'vue-router'
|
||||
import Meta from 'vue-meta'
|
||||
import Home from '@/components/Home'
|
||||
import Projects from '@/components/Projects'
|
||||
import About from '@/components/About'
|
||||
import ViewProject from '@/components/ViewProject'
|
||||
import ViewDocumentation from '@/components/ViewDocumentation'
|
||||
|
||||
Vue.use(Router)
|
||||
Vue.use(Meta)
|
||||
|
||||
export default new Router({
|
||||
routes: [
|
||||
@@ -22,6 +26,16 @@ export default new Router({
|
||||
path: '/about',
|
||||
name: 'About',
|
||||
component: About
|
||||
},
|
||||
{
|
||||
path: '/viewproject/:project_name',
|
||||
name: 'View Project',
|
||||
component: ViewProject
|
||||
},
|
||||
{
|
||||
path: '/viewdoc/:project_name',
|
||||
name: 'ViewDoc',
|
||||
component: ViewDocumentation
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user