[3/n]: Migrate the PUT rest/* and PATCH rest/* to use TwentyORM (#10002)
# This PR - Is addressing #3644 - Migrates the PUT and PATCH rest/* endpoints to use twentyORM directly - Adds integration tests
This commit is contained in:
@ -34,7 +34,12 @@ import { CoreEngineModule } from './engine/core-modules/core-engine.module';
|
||||
import { I18nModule } from './engine/core-modules/i18n/i18n.module';
|
||||
|
||||
// TODO: Remove this middleware when all the rest endpoints are migrated to TwentyORM
|
||||
const MIGRATED_REST_METHODS = [RequestMethod.DELETE];
|
||||
const MIGRATED_REST_METHODS = [
|
||||
RequestMethod.DELETE,
|
||||
RequestMethod.POST,
|
||||
RequestMethod.PATCH,
|
||||
RequestMethod.PUT,
|
||||
];
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
|
||||
Reference in New Issue
Block a user