diff --git a/projects/frontend/src/routes.ts b/projects/frontend/src/routes.ts index f80a396..7706d60 100644 --- a/projects/frontend/src/routes.ts +++ b/projects/frontend/src/routes.ts @@ -12,15 +12,14 @@ import type { } from '@goldenwere/mackenzii-types' const markdownBody = () => import ('./views/markdown/markdown.vue') -const blogListBody = () => import ('./views/blog/blog-list.vue') const blogViewBody = () => import ('./views/blog/blog-view.vue') -const galleryListBody = () => import ('./views/gallery/gallery-list.vue') const galleryViewBody = () => import ('./views/gallery/gallery-view.vue') +const mediaListBody = () => import ('./views/shared/media-list.vue') export const templates: Record Promise> = { 'markdown': markdownBody, - 'blog-list': blogListBody, - 'gallery-list': galleryListBody, + 'blog-list': mediaListBody, + 'gallery-list': mediaListBody, } export const createRoutes = (): RouteRecordRaw[] => { diff --git a/projects/frontend/src/views/blog/blog-list.vue b/projects/frontend/src/views/blog/blog-list.vue deleted file mode 100644 index 1749bf5..0000000 --- a/projects/frontend/src/views/blog/blog-list.vue +++ /dev/null @@ -1,92 +0,0 @@ - - - - - diff --git a/projects/frontend/src/views/gallery/gallery-list.vue b/projects/frontend/src/views/shared/media-list.vue similarity index 63% rename from projects/frontend/src/views/gallery/gallery-list.vue rename to projects/frontend/src/views/shared/media-list.vue index e67c9cf..5ae6782 100644 --- a/projects/frontend/src/views/gallery/gallery-list.vue +++ b/projects/frontend/src/views/shared/media-list.vue @@ -1,9 +1,9 @@