feat: register pages
This commit is contained in:
@ -13,6 +13,8 @@ import ApiServicesPage from "./pages/ApiServices";
|
|||||||
import AdminLayout from "./layout/AdminLayout";
|
import AdminLayout from "./layout/AdminLayout";
|
||||||
import ApiServiceCreatePage from "./pages/ApiServices/Create";
|
import ApiServiceCreatePage from "./pages/ApiServices/Create";
|
||||||
import ViewApiServicePage from "./pages/ApiServices/View";
|
import ViewApiServicePage from "./pages/ApiServices/View";
|
||||||
|
import NotAllowedPage from "./pages/NotAllowed";
|
||||||
|
import NotFoundPage from "./pages/NotFound";
|
||||||
|
|
||||||
const router = createBrowserRouter([
|
const router = createBrowserRouter([
|
||||||
{
|
{
|
||||||
@ -62,6 +64,14 @@ const router = createBrowserRouter([
|
|||||||
{ path: "authenticate", element: <AuthenticatePage /> },
|
{ path: "authenticate", element: <AuthenticatePage /> },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/not-allowed",
|
||||||
|
element: <NotAllowedPage />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "*",
|
||||||
|
element: <NotFoundPage />,
|
||||||
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const App: FC = () => {
|
const App: FC = () => {
|
||||||
|
Reference in New Issue
Block a user