Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

project view to remix and add routing

Maksim Mrugcdf3dd447c51
diff --git a/app/routes/projects.$id.tsx b/app/routes/projects.$id.tsx
new file mode 100644
index 000000000..fe00cc8e1
--- /dev/null
+++ b/app/routes/projects.$id.tsx
@@ -0,0 +1,15 @@
+import ViewProject from 'pages/Project/View'
+import type { V2_MetaFunction } from '@remix-run/node'
+
+export const meta: V2_MetaFunction = () => {
+ return [
+ {
+ title: 'View Project',
+ description: 'View Project',
+ },
+ ]
+}
+
+export default function Index() {
+ return <ViewProject />
+}
diff --git a/app/routesPath/index.ts b/app/routesPath/index.ts
index 083eb0f30..9f2fd62c2 100644
--- a/app/routesPath/index.ts
+++ b/app/routesPath/index.ts
@@ -14,7 +14,7 @@ const routes = Object.freeze({
new_captcha: '/captchas/new', // add
project_settings: '/projects/settings/:id', // add
captcha_settings: '/captchas/settings/:id',
- project: '/projects/:id',
+ project: '/projects/:id', // add
captcha: '/captchas/:id',
features: '/features', // add
billing: '/billing', // add