Skip to content

Commit

Permalink
Added getter for interceptor routes
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhenry committed Jul 16, 2015
1 parent 8eab4be commit 45d152e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ngRestAdapterService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ module NgRestAdapter {

export class NgRestAdapterService implements INgRestAdapterService {

private apiErrorHandler;
private apiErrorHandler:IApiErrorHandler;
private skipInterceptorRoutes:RegExp[];

/**
* Construct the service with dependencies injected
Expand Down Expand Up @@ -130,10 +131,14 @@ module NgRestAdapter {
throw new NgRestAdapterErrorHandlerNotFoundException("API Error handler is not set");
}

private getSkipInterceptorRoutes(excludedRoutes:RegExp[]){
return this.skipInterceptorRoutes;
}

public setSkipInterceptorRoutes(excludedRoutes:RegExp[]):NgRestAdapter.NgRestAdapterService {

public setSkipInterceptorRoutes(excludedRoutes:RegExp[]):NgRestAdapter.NgRestAdapterService {

this.skipInterceptorRoutes = excludedRoutes;

return this;
}
Expand Down

0 comments on commit 45d152e

Please sign in to comment.