Queue-North-Website/src/router.jsx

34 lines
1.1 KiB
React
Raw Normal View History

2026-05-12 01:04:17 -05:00
import { createBrowserRouter } from 'react-router-dom'
import App from './App.jsx'
import Home from './pages/Home.jsx'
import About from './pages/About.jsx'
import Services from './pages/Services.jsx'
import ServiceDetail from './pages/ServiceDetail.jsx'
import Industries from './pages/Industries.jsx'
import IndustryDetail from './pages/IndustryDetail.jsx'
import Contact from './pages/Contact.jsx'
import Support from './pages/Support.jsx'
import NotFound from './pages/NotFound.jsx'
2026-05-12 01:04:17 -05:00
const router = createBrowserRouter([
{
path: '/',
element: (
<App />
),
2026-05-12 01:04:17 -05:00
children: [
{ index: true, element: <Home /> },
{ path: 'about', element: <About /> },
{ path: 'services', element: <Services /> },
{ path: 'services/:slug', element: <ServiceDetail /> },
2026-05-12 01:04:17 -05:00
{ path: 'industries', element: <Industries /> },
{ path: 'industries/:slug', element: <IndustryDetail /> },
2026-05-12 01:04:17 -05:00
{ path: 'contact', element: <Contact /> },
{ path: 'support', element: <Support /> },
{ path: '*', element: <NotFound /> },
2026-05-12 01:04:17 -05:00
],
},
])
export default router