merged
This commit is contained in:
commit
b208cd68f4
11 changed files with 1475 additions and 22 deletions
|
|
@ -37,6 +37,8 @@ const BinCableEstimator = lazy(() => import("pages/BinCableEstimator"));
|
|||
const APIDocs = lazy(() => import("pages/APIDocs"));
|
||||
const Fields = lazy(()=> import("pages/Fields"));
|
||||
const Marketplace = lazy(() => import("userFeatures/UserFeatures"))
|
||||
const Logs = lazy(() => import("pages/Logs"))
|
||||
|
||||
export const appendToUrl = (appendage: number | string) => {
|
||||
const basePath = location.pathname.replace(/\/$/, "");
|
||||
return(`${basePath}/${appendage}`);
|
||||
|
|
@ -304,6 +306,9 @@ export default function Router() {
|
|||
{user.hasFeature("developer") &&
|
||||
<Route path="api" element={<APIDocs />} />
|
||||
}
|
||||
{user.hasFeature("admin") &&
|
||||
<Route path="logs" element={<Logs />} />
|
||||
}
|
||||
<Route path="fields" element={<Fields />} />
|
||||
<Route path="marketplace" element={<Marketplace />} />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue