Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

Commit

Permalink
fix exported routes namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaluyot committed Apr 7, 2020
1 parent 9c5a7a1 commit 35a02d9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/modules/chart/routes/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Chart } from '@/modules/chart/views'

export const chartRoutes: object = {
export const ChartRoutes: object = {
'/chart': {
component: Chart,
meta: {
Expand Down
2 changes: 1 addition & 1 deletion app/modules/home/routes/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Home } from '@/modules/home/views'

export const homeRoutes: object = {
export const HomeRoutes: object = {
'/home': {
component: Home,
meta: {
Expand Down
2 changes: 1 addition & 1 deletion app/modules/social/routes/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Social } from '@/modules/social/views'

export const socialRoutes: any = {
export const SocialRoutes: object = {
'/social': {
component: Social,
meta: {
Expand Down
8 changes: 4 additions & 4 deletions app/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { homeRoutes } from '@/modules/home/routes'
import { socialRoutes } from '@/modules/social/routes'
import { chartRoutes } from '@/modules/chart/routes'
import { HomeRoutes } from '@/modules/home/routes'
import { SocialRoutes } from '@/modules/social/routes'
import { ChartRoutes } from '@/modules/chart/routes'

const routes = Object.assign(homeRoutes, socialRoutes, chartRoutes)
const routes = Object.assign(HomeRoutes, SocialRoutes, ChartRoutes)

export default routes

0 comments on commit 35a02d9

Please sign in to comment.