2025-01-21 14:54:02 +01:00
|
|
|
import Newsletter from './views/post-analytics/components/Newsletter';
|
|
|
|
import Overview from './views/post-analytics/components/Overview';
|
|
|
|
import PostAnalytics from './views/post-analytics/PostAnalytics';
|
2025-01-23 16:48:29 +01:00
|
|
|
import Posts from './views/posts/Posts';
|
|
|
|
import {RouteObject} from '@tryghost/admin-x-framework';
|
2025-01-21 14:54:02 +01:00
|
|
|
|
2025-01-23 16:48:29 +01:00
|
|
|
export const APP_ROUTE_PREFIX = '/posts-x';
|
2025-01-21 14:54:02 +01:00
|
|
|
|
2025-01-23 16:48:29 +01:00
|
|
|
export const routes: RouteObject[] = [
|
2025-01-21 14:54:02 +01:00
|
|
|
{
|
2025-01-23 16:48:29 +01:00
|
|
|
path: '',
|
|
|
|
Component: Posts
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'analytics/:postId',
|
2025-01-21 14:54:02 +01:00
|
|
|
Component: PostAnalytics,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
Component: Overview
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'overview',
|
|
|
|
Component: Overview
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'newsletter',
|
|
|
|
Component: Newsletter
|
2025-01-23 16:48:29 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'share',
|
|
|
|
Component: Overview
|
2025-01-21 14:54:02 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
];
|