Skip to content

Commit

Permalink
fix: consistent variable path in react generator api-platform#376
Browse files Browse the repository at this point in the history
  • Loading branch information
29Hido committed Feb 28, 2024
1 parent ac7e75f commit 5e2b9fb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/react/routes/foo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { Route } from "react-router-dom";
import { List, Create, Update, Show } from "../components/{{{lc}}}/";

const routes = [
<Route path="/{{{name}}}/create" element={<Create />} key="create" />,
<Route path="/{{{name}}}/edit/:id" element={<Update />} key="update" />,
<Route path="/{{{name}}}/show/:id" element={<Show />} key="show" />,
<Route path="/{{{name}}}" element={<List />} key="list" />,
<Route path="/{{{name}}}/:page" element={<List />} key="page" />,
<Route path="/{{{lc}}}s/create" element={<Create />} key="create" />,
<Route path="/{{{lc}}}s/edit/:id" element={<Update />} key="update" />,
<Route path="/{{{lc}}}s/show/:id" element={<Show />} key="show" />,
<Route path="/{{{lc}}}s" element={<List />} key="list" />,
<Route path="/{{{lc}}}s/:page" element={<List />} key="page" />,
];

export default routes;

0 comments on commit 5e2b9fb

Please sign in to comment.