feat(M03-B): 完成装修广告与媒体管理
This commit is contained in:
@@ -17,6 +17,10 @@ import {
|
||||
registerStoreRoomRoutes,
|
||||
type StoreRoomRouteOptions
|
||||
} from './routes/store-room-management.js';
|
||||
import {
|
||||
registerContentRoutes,
|
||||
type ContentRouteOptions
|
||||
} from './routes/content-management.js';
|
||||
|
||||
export interface BuildAppOptions {
|
||||
config?: AppConfig;
|
||||
@@ -24,6 +28,7 @@ export interface BuildAppOptions {
|
||||
auth?: AuthRouteOptions;
|
||||
userManagement?: UserManagementRouteOptions;
|
||||
storeRoom?: StoreRoomRouteOptions;
|
||||
content?: ContentRouteOptions;
|
||||
}
|
||||
|
||||
declare module 'fastify' {
|
||||
@@ -78,6 +83,9 @@ export async function buildApp(options: BuildAppOptions = {}): Promise<FastifyIn
|
||||
if (options.storeRoom) {
|
||||
await registerStoreRoomRoutes(app, options.storeRoom);
|
||||
}
|
||||
if (options.content) {
|
||||
await registerContentRoutes(app, options.content);
|
||||
}
|
||||
|
||||
return app;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user