ldc-ovoteam/resources/ts/services/container.ts
Jérémy Munsch 028f769dbc
feat(products): add create and edit product pages
- Implemented Create and Edit pages for products with forms.
- Added validation and permissions handling for product actions.
- Introduced new product model and related types for better structure.
- Enhanced sidebar registry to remove auth dependency for link resolution.
- Updated routes to handle precognitive requests for product forms.
2026-09-21 11:36:52 +02:00

16 lines
362 B
TypeScript

import AuthService from "@/services/AuthService";
import { asClass, createContainer, InjectionMode } from "awilix";
export interface Cradle {
authService: AuthService;
}
const container = createContainer<Cradle>({
injectionMode: InjectionMode.PROXY,
});
container.register({
authService: asClass(AuthService).singleton(),
});
export default container;