Headless Mode
If you want to use the module programmatically (without REST endpoints), disable controllers.
CrudConfigModule.register({
controllersOptions: {
section: { isEnabled: false },
data: { isEnabled: false },
},
});In async registration, disable controllers via staticOptions.controllersOptions:
CrudConfigModule.registerAsync({
useFactory: async () => ({ environment: "production" }),
staticOptions: {
controllersOptions: {
section: { isEnabled: false },
data: { isEnabled: false },
},
},
});Last updated on