Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (37 sloc) 680 Bytes
// @flow
import { App, Home, Blog, BlogIndex, BlogArticle, NotFound } from './modules'
const routes = [
{
component: App,
routes: [
{
path: '/',
component: Home,
exact: true
},
{
path: '/blog',
component: Blog,
routes: [
{
path: '/blog',
component: BlogIndex,
exact: true
},
{
path: '/blog/:slug',
component: BlogArticle,
exact: true
},
{
component: NotFound
}
]
},
{
component: NotFound
}
]
}
]
export default routes