Skip to content

Commit

Permalink
feat(app): Routes 에서 /article Path 를 ArticlePage 로 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
innocarpe committed Sep 3, 2023
1 parent dba2db9 commit e766097
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/react-world/src/routes/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { createBrowserRouter, RouterProvider } from 'react-router-dom';
import { HomePage } from '../pages/home';
import { LoginPage } from '../pages/login';
import { RegisterPage } from '../pages/register';
import { ArticlePage } from '../pages/article';

const router = createBrowserRouter([
{
Expand All @@ -16,6 +17,10 @@ const router = createBrowserRouter([
path: '/register',
element: <RegisterPage />,
},
{
path: '/article/:slug',
element: <ArticlePage />,
},
]);

export const Routes = () => {
Expand Down

0 comments on commit e766097

Please sign in to comment.