diff --git a/apps/server/src/modules/bookmarks/index.ts b/apps/server/src/modules/bookmarks/index.ts new file mode 100644 index 0000000..07aeaa5 --- /dev/null +++ b/apps/server/src/modules/bookmarks/index.ts @@ -0,0 +1,10 @@ +import type { ModuleMetadata } from '../registry' + +export const bookmarksModule: ModuleMetadata = { + id: 'bookmarks', + name: '书签导航', + description: '常用链接和网站的快速导航', + icon: 'Compass', + route: '/bookmarks', + enabled: true, +} diff --git a/apps/server/src/modules/registry.ts b/apps/server/src/modules/registry.ts new file mode 100644 index 0000000..1409b74 --- /dev/null +++ b/apps/server/src/modules/registry.ts @@ -0,0 +1,12 @@ +import { bookmarksModule } from './bookmarks' + +export interface ModuleMetadata { + id: string + name: string + description: string + icon: string + route: string + enabled: boolean +} + +export const modules: ModuleMetadata[] = [bookmarksModule]