started admin ui
This commit is contained in:
20
src/misc/router.js
Normal file
20
src/misc/router.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import {
|
||||
createBrowserRouter
|
||||
} from "react-router-dom";
|
||||
|
||||
import App from '../App';
|
||||
|
||||
export const router = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
element: <App page="form"/>,
|
||||
},
|
||||
{
|
||||
path: "/dashboard",
|
||||
element: <App page="dashboard"/>,
|
||||
},
|
||||
{
|
||||
path: "/dashboard/:page",
|
||||
element: <App/>,
|
||||
},
|
||||
]);
|
||||
Reference in New Issue
Block a user