|
|
@@ -2,6 +2,7 @@ import { createBrowserRouter } from 'react-router-dom'
|
|
|
import GeneralError from './pages/errors/general-error'
|
|
|
import NotFoundError from './pages/errors/not-found-error'
|
|
|
import MaintenanceError from './pages/errors/maintenance-error'
|
|
|
+import UnauthorisedError from './pages/errors/unauthorised-error.tsx'
|
|
|
|
|
|
const router = createBrowserRouter([
|
|
|
// Auth routes
|
|
|
@@ -142,6 +143,7 @@ const router = createBrowserRouter([
|
|
|
{ path: '/500', Component: GeneralError },
|
|
|
{ path: '/404', Component: NotFoundError },
|
|
|
{ path: '/503', Component: MaintenanceError },
|
|
|
+ { path: '/401', Component: UnauthorisedError },
|
|
|
|
|
|
// Fallback 404 route
|
|
|
{ path: '*', Component: NotFoundError },
|