feat: Fixed path for routes

This commit is contained in:
2025-06-09 14:07:51 +03:00
parent 64c15b2622
commit 2ca1f2cba4
13 changed files with 706 additions and 32 deletions

View File

@ -38,6 +38,7 @@ import {
StationEditPage,
RouteCreatePage,
RoutePreview,
RouteEditPage,
} from "@pages";
import { authStore, createSightStore, editSightStore } from "@shared";
import { Layout } from "@widgets";
@ -98,6 +99,7 @@ const router = createBrowserRouter([
</PublicRoute>
),
},
{ path: "route-preview/:id", element: <RoutePreview /> },
{
path: "/",
element: (
@ -141,7 +143,7 @@ const router = createBrowserRouter([
// Route
{ path: "route", element: <RouteListPage /> },
{ path: "route/create", element: <RouteCreatePage /> },
{ path: "route-preview/:id", element: <RoutePreview /> },
{ path: "route/:id/edit", element: <RouteEditPage /> },
// User
{ path: "user", element: <UserListPage /> },