- 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.
16 lines
362 B
TypeScript
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;
|