diff --git a/src/modules/habilitation/habilitation.module.ts b/src/modules/habilitation/habilitation.module.ts index 988e400..97af552 100644 --- a/src/modules/habilitation/habilitation.module.ts +++ b/src/modules/habilitation/habilitation.module.ts @@ -43,13 +43,13 @@ export class HabilitationModule { .apply(HabilitationMiddleware) .exclude({ path: 'communes/:codeCommune/habilitations', - method: RequestMethod.POST, + method: RequestMethod.ALL, }) .forRoutes(HabilitationController); consumer.apply(CommuneMiddleware).forRoutes({ path: 'communes/:codeCommune/habilitations', - method: RequestMethod.POST, + method: RequestMethod.ALL, }); } } diff --git a/src/modules/revision/revision.module.ts b/src/modules/revision/revision.module.ts index fe35987..e3292bf 100644 --- a/src/modules/revision/revision.module.ts +++ b/src/modules/revision/revision.module.ts @@ -48,42 +48,38 @@ export class RevisionModule { consumer.apply(RevisionMiddleware).forRoutes( { path: 'revisions/:revisionId', - method: RequestMethod.GET, + method: RequestMethod.ALL, }, { path: 'revisions/:revisionId/files/bal/download', - method: RequestMethod.GET, + method: RequestMethod.ALL, }, { path: 'revisions/:revisionId/files/bal', - method: RequestMethod.PUT, + method: RequestMethod.ALL, }, { path: 'revisions/:revisionId/compute', - method: RequestMethod.POST, + method: RequestMethod.ALL, }, { path: 'revisions/:revisionId/publish', - method: RequestMethod.POST, + method: RequestMethod.ALL, }, ); consumer.apply(CommuneMiddleware).forRoutes( { path: 'communes/:codeCommune/current-revision', - method: RequestMethod.GET, + method: RequestMethod.ALL, }, { path: 'communes/:codeCommune/revisions', - method: RequestMethod.GET, + method: RequestMethod.ALL, }, { path: 'communes/:codeCommune/current-revision/files/bal/download', - method: RequestMethod.GET, - }, - { - path: 'communes/:codeCommune/revisions', - method: RequestMethod.POST, + method: RequestMethod.ALL, }, ); }