Skip to content

Commit

Permalink
Merge branch 'master' into fufeck_migration_postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
fufeck authored Dec 2, 2024
2 parents 87a43aa + 887a401 commit ddfddb5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/modules/habilitation/habilitation.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,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,
});
}
}
20 changes: 8 additions & 12 deletions src/modules/revision/revision.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,42 +54,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,
},
);
}
Expand Down

0 comments on commit ddfddb5

Please sign in to comment.