Skip to content

Commit

Permalink
feat: Add route for common model that contains PK
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Nov 13, 2024
1 parent 8bd7e6f commit 0c97232
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,15 @@ function App() {
loader = {detailsLoader}
/>

<Route path="/:module/:common_model/:common_pk/:model/:pk"
element={<Detail
setContentHeading={setContentHeading}
SetContentHeaderIcon={SetContentHeaderIcon}
/>}
errorElement={<ErrorPage /> }
loader = {detailsLoader}
/>

</Route>
));

Expand Down

0 comments on commit 0c97232

Please sign in to comment.