Skip to content

Commit

Permalink
Merge pull request #332 from aura-nw/hotfix/merge-whitelist-path-api-…
Browse files Browse the repository at this point in the history
…gateway-dev

fix: merge whitelist path in api gateway (develop)
  • Loading branch information
fibonacci998 authored Aug 21, 2023
2 parents 95d1827 + 5b88ab8 commit 0b66b0f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/services/api-gateways/api_gateway.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,10 @@ import { bullBoardMixin } from '../../mixins/bullBoard/bullBoard.mixin';
path: '/admin',
autoAliases: true, // allow generate rest info (GET/PUT/POST...) in the services
mappingPolicy: 'restrict', // allow action called with exact method
whitelist: ['v2.statistics.syncPrevDateStatsByChainId'],
},
{
path: '/admin',
autoAliases: true, // allow generate rest info (GET/PUT/POST...) in the services
mappingPolicy: 'restrict', // allow action called with exact method
whitelist: ['v1.cw20-admin.*'],
whitelist: [
'v2.statistics.syncPrevDateStatsByChainId',
'v1.cw20-admin.*',
],
},
],
// empty cors object will have moleculer to generate handler for preflight request and CORS header which allow all origin
Expand Down

0 comments on commit 0b66b0f

Please sign in to comment.