mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-25 00:49:32 +02:00
feat: tools by category
This commit is contained in:
@@ -3,12 +3,17 @@ import { Navigate } from 'react-router-dom';
|
||||
import { lazy } from 'react';
|
||||
|
||||
const Home = lazy(() => import('../pages/home'));
|
||||
const ToolsByCategory = lazy(() => import('../pages/tools-by-category'));
|
||||
|
||||
const routes: RouteObject[] = [
|
||||
{
|
||||
path: '/',
|
||||
element: <Home />
|
||||
},
|
||||
{
|
||||
path: '/categories/:categoryName',
|
||||
element: <ToolsByCategory />
|
||||
},
|
||||
{
|
||||
path: '*',
|
||||
element: <Navigate to="404" />
|
||||
|
Reference in New Issue
Block a user