feat: add public image read boundary
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-08 21:58:30 -04:00
parent 5452bd5589
commit b00bd388a9
15 changed files with 223 additions and 9 deletions
+8 -2
View File
@@ -20,6 +20,7 @@ import { createPasswordRecoveryService } from '../modules/auth/services/password
import { createInventoryItemRepository } from '../modules/inventory/repositories/inventory-item-repository.js';
import { createInventoryItemService } from '../modules/inventory/services/inventory-item-service.js';
import { createPublicInventoryService } from '../modules/inventory/services/public-inventory-service.js';
import { createPublicImageService } from '../modules/inventory/services/public-image-service.js';
import { createInventoryImageRepository } from '../modules/inventory/repositories/inventory-image-repository.js';
import { createInventoryImageService } from '../modules/inventory/services/inventory-image-service.js';
import { createLocalImageStorage } from '../infrastructure/images/local-image-storage.js';
@@ -65,6 +66,10 @@ async function startServer() {
securityAuditRepository,
});
const passwordResetNotifier = createPasswordResetNotifier();
const publicImageService = createPublicImageService({
imageStorage: createLocalImageStorage(process.env.IMAGE_STORAGE_ROOT ?? '.local/image-storage'),
inventoryImageRepository,
});
const authenticationService = createAuthenticationService({
mfaService,
sessionRepository,
@@ -95,13 +100,14 @@ async function startServer() {
inventoryItemRepository,
productRepository,
}),
publicInventoryService: createPublicInventoryService({ inventoryItemRepository }),
publicImageService,
publicInventoryService: createPublicInventoryService({ inventoryItemRepository, publicImageService }),
inventoryImageService: createInventoryImageService({
imageStorage: createLocalImageStorage(process.env.IMAGE_STORAGE_ROOT ?? '.local/image-storage'),
inventoryImageRepository,
}),
listingService: createListingService({ listingRepository, inventoryImageRepository }),
publicListingService: createPublicListingService({ listingRepository }),
publicListingService: createPublicListingService({ listingRepository, publicImageService }),
productService: createProductService({ productRepository }),
publicProductService: createPublicProductService({ productRepository }),
searchService: createSearchService({ listingRepository }),