degmods.com/src/routes/index.tsx

54 lines
1016 B
TypeScript
Raw Normal View History

2024-07-11 15:09:47 +00:00
import { AboutPage } from '../pages/about'
2024-07-11 13:34:12 +00:00
import { BlogsPage } from '../pages/blogs'
2024-07-11 12:15:03 +00:00
import { GamesPage } from '../pages/games'
2024-07-11 11:45:59 +00:00
import { HomePage } from '../pages/home'
2024-07-11 12:52:48 +00:00
import { ModsPage } from '../pages/mods'
2024-07-11 20:03:52 +00:00
import { SubmitModPage } from '../pages/submitMod'
2024-07-12 09:22:31 +00:00
import { WritePage } from '../pages/write'
2024-07-11 11:45:59 +00:00
2024-07-11 12:15:03 +00:00
export const appRoutes = {
2024-07-11 11:45:59 +00:00
index: '/',
2024-07-11 12:15:03 +00:00
home: '/home',
games: '/games',
mods: '/mods',
about: '/about',
2024-07-11 20:03:52 +00:00
blog: '/blog',
2024-07-12 09:22:31 +00:00
submitMod: '/submit-mod',
write: '/write'
2024-07-11 11:45:59 +00:00
}
export const routes = [
{
path: appRoutes.index,
element: <HomePage />
},
{
path: appRoutes.home,
element: <HomePage />
2024-07-11 12:15:03 +00:00
},
{
path: appRoutes.games,
element: <GamesPage />
},
{
path: appRoutes.mods,
2024-07-11 12:52:48 +00:00
element: <ModsPage />
2024-07-11 12:15:03 +00:00
},
{
path: appRoutes.about,
2024-07-11 15:09:47 +00:00
element: <AboutPage />
2024-07-11 12:15:03 +00:00
},
{
path: appRoutes.blog,
2024-07-11 13:34:12 +00:00
element: <BlogsPage />
2024-07-11 20:03:52 +00:00
},
{
path: appRoutes.submitMod,
element: <SubmitModPage />
2024-07-12 09:22:31 +00:00
},
{
path: appRoutes.write,
element: <WritePage />
2024-07-11 11:45:59 +00:00
}
]