|
|
|
@ -31,12 +31,12 @@ export const appConfig: ApplicationConfig = { |
|
|
|
allowedList: [ |
|
|
|
{ |
|
|
|
uriMatcher: (uri) => { |
|
|
|
let is_create = uri.match('.+\/create'); |
|
|
|
let is_update = uri.match('.+\/update'); |
|
|
|
let is_delete = uri.match('.+\/delete'); |
|
|
|
let is_login = uri.match('.+\/login'); |
|
|
|
let is_claim = uri.match('.+\/claim-racer'); |
|
|
|
return is_create != null || is_update != null || is_delete != null || is_claim != null; |
|
|
|
let needs_token = uri.match('.+\/create') != null; |
|
|
|
needs_token ||= uri.match('.+\/update') != null; |
|
|
|
needs_token ||= uri.match('.+\/delete') != null; |
|
|
|
needs_token ||= uri.match('.+\/login') != null; |
|
|
|
needs_token ||= uri.match('.+\/claim-racer') != null; |
|
|
|
return needs_token; |
|
|
|
}, |
|
|
|
tokenOptions: { |
|
|
|
authorizationParams: { |
|
|
|
|