34 lines
705 B
TypeScript
34 lines
705 B
TypeScript
import ScenariosList from "@/pages/scenarios/list";
|
|
import NewPlan from "@/pages/scenarios/new/page";
|
|
import ScenarioList from "@/pages/scenarios/ScenarioList";
|
|
|
|
const scenarioRoutes = [
|
|
{
|
|
path: "/scenarios",
|
|
element: <ScenariosList />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/scenarios/new",
|
|
element: <NewPlan />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/scenarios/new/:scenarioId",
|
|
element: <NewPlan />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/scenarios/edit/:planId",
|
|
element: <NewPlan />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/scenarios/list/:scenarioId/:scenarioName",
|
|
element: <ScenarioList />,
|
|
auth: true,
|
|
},
|
|
];
|
|
|
|
export default scenarioRoutes;
|