feat(M03-C): 完成地图选店与距离排序
This commit is contained in:
@@ -10,6 +10,7 @@ import { StoreRoomRepository } from './stores/store-room-repository.js';
|
||||
import { ContentRepository } from './content/content-repository.js';
|
||||
import { MediaStorage } from './content/media-storage.js';
|
||||
import { resolve } from 'node:path';
|
||||
import { StoreDiscoveryRepository } from './stores/store-discovery-repository.js';
|
||||
|
||||
const config = loadConfig();
|
||||
const pool = createMySqlPool(config);
|
||||
@@ -44,6 +45,10 @@ const app = await buildApp({
|
||||
authRepository,
|
||||
accessControl,
|
||||
jwtSecret: config.auth.jwtSecret
|
||||
},
|
||||
storeDiscovery: {
|
||||
repository: new StoreDiscoveryRepository(pool),
|
||||
tenancy: authRepository
|
||||
}
|
||||
});
|
||||
app.addHook('onClose', async () => {
|
||||
|
||||
Reference in New Issue
Block a user