Initial commit: Kottgard production website code
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { container } from '@/application/container';
|
||||
|
||||
/**
|
||||
* Backward-compatible facade — data lives in infrastructure layer
|
||||
*/
|
||||
export const products = container.productRepository.findAll();
|
||||
|
||||
export function getProductBySlug(slug: string) {
|
||||
return container.getProductBySlug.execute(slug);
|
||||
}
|
||||
|
||||
export function getProductsByCategory(category: string) {
|
||||
return container.productRepository.findByCategory(category);
|
||||
}
|
||||
|
||||
export function getFeaturedProducts() {
|
||||
return container.productRepository.findFeatured();
|
||||
}
|
||||
Reference in New Issue
Block a user