Skip to content

Commit

Permalink
Updated endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
aklarfeld committed Sep 25, 2023
1 parent d6bed39 commit e7e7081
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const defaultConfig = {
flushInterval: 1000,
eventSinkEndpoint: '/api/events',
errorSinkEndpoint: '/api/errors',
eventSinkEndpoint: '/events',
errorSinkEndpoint: '/errors',
keysToHash: [],
ignoredDomains: [],
allowedDomains: [],
Expand All @@ -27,7 +27,7 @@ const errors = {
'No Client Secret Provided, set SUPERGOOD_CLIENT_SECRET or pass it as an argument'
};

const TestErrorPath = '/api/supergood-test-error';
const TestErrorPath = '/supergood-test-error';
const LocalClientId = 'local-client-id';
const LocalClientSecret = 'local-client-secret';

Expand Down
4 changes: 2 additions & 2 deletions src/test/core.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const INTERNAL_SUPERGOOD_SERVER = `http://localhost:${SUPERGOOD_SERVER_PORT}`;
const defaultConfig = {
flushInterval: 30000,
cacheTtl: 0,
eventSinkEndpoint: `/api/events`,
errorSinkEndpoint: `/api/errors`,
eventSinkEndpoint: `/events`,
errorSinkEndpoint: `/errors`,
keysToHash: ['request.body', 'response.body'],
ignoredDomains: []
};
Expand Down
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ interface ConfigType {
allowedDomains: string[];
cacheTtl: number;
keysToHash: string[];
eventSinkEndpoint: string; // Defaults to {baseUrl}/api/events if not provided
errorSinkEndpoint: string; // Defaults to {baseUrl}/api/errors if not provided
eventSinkEndpoint: string; // Defaults to {baseUrl}/events if not provided
errorSinkEndpoint: string; // Defaults to {baseUrl}/errors if not provided
waitAfterClose: number;
}

Expand Down

0 comments on commit e7e7081

Please sign in to comment.