feat(M03-C): 完成地图选店与距离排序
This commit is contained in:
@@ -21,6 +21,10 @@ import {
|
||||
registerContentRoutes,
|
||||
type ContentRouteOptions
|
||||
} from './routes/content-management.js';
|
||||
import {
|
||||
registerStoreDiscoveryRoutes,
|
||||
type StoreDiscoveryRouteOptions
|
||||
} from './routes/store-discovery.js';
|
||||
|
||||
export interface BuildAppOptions {
|
||||
config?: AppConfig;
|
||||
@@ -29,6 +33,7 @@ export interface BuildAppOptions {
|
||||
userManagement?: UserManagementRouteOptions;
|
||||
storeRoom?: StoreRoomRouteOptions;
|
||||
content?: ContentRouteOptions;
|
||||
storeDiscovery?: StoreDiscoveryRouteOptions;
|
||||
}
|
||||
|
||||
declare module 'fastify' {
|
||||
@@ -86,6 +91,9 @@ export async function buildApp(options: BuildAppOptions = {}): Promise<FastifyIn
|
||||
if (options.content) {
|
||||
await registerContentRoutes(app, options.content);
|
||||
}
|
||||
if (options.storeDiscovery) {
|
||||
await registerStoreDiscoveryRoutes(app, options.storeDiscovery);
|
||||
}
|
||||
|
||||
return app;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user