Skip to content

Commit

Permalink
feat(): add optional param to ApiExcludeEndpoint to activate conditio…
Browse files Browse the repository at this point in the history
…nally
  • Loading branch information
gilzarfati committed May 1, 2020
1 parent 58c9c55 commit dacc672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/decorators/api-exclude-endpoint.decorator.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { DECORATORS } from '../constants';
import { createMethodDecorator } from './helpers';

export function ApiExcludeEndpoint(): MethodDecorator {
export function ApiExcludeEndpoint(disable = true): MethodDecorator {
return createMethodDecorator(DECORATORS.API_EXCLUDE_ENDPOINT, {
disable: true
disable
});
}

0 comments on commit dacc672

Please sign in to comment.