Skip to content

Commit

Permalink
Merge pull request #6 from WunderbarNetwork/api-route-change
Browse files Browse the repository at this point in the history
API Route Change
  • Loading branch information
MilosRandelovic committed Jun 8, 2023
2 parents 6464081 + 830eaf4 commit 7cb77b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@wunderbar-network/mini-digital-sdk-js",
"version": "1.0.0",
"version": "1.0.1",
"description": "Event Tracking Service for back-end (Node) and front-end (JS) applications, to send events to the Mini.Digital ingress API",
"private": true,
"exports": {
Expand Down
4 changes: 2 additions & 2 deletions src/services/EventTrackingService.ts
Expand Up @@ -112,7 +112,7 @@ async function postEventJwt(
if (!isStringNullOrEmpty(jwtAuthorizationToken)) {
headers.Authorization = jwtAuthorizationToken ?? "";
}
response = await fetch(`${miniDigitalUrl}/events/jwt/${event.eventId}`, {
response = await fetch(`${miniDigitalUrl}/events/jwt/v1/${event.eventId}`, {
method: "POST",
headers,
body: JSON.stringify(event),
Expand Down Expand Up @@ -157,7 +157,7 @@ async function postEventApiKey(event: AnalyticsEvent, miniDigitalUrl: string, lo

let response: Response;
try {
response = await fetch(`${miniDigitalUrl}/events/key/${event.eventId}`, {
response = await fetch(`${miniDigitalUrl}/events/key/v1/${event.eventId}`, {
method: "POST",
headers: {
Accept: "application/json",
Expand Down
2 changes: 1 addition & 1 deletion src/util/Config.ts
Expand Up @@ -6,4 +6,4 @@ export const config = {
};

/** The (name &) version to identify this SDK */
export const SDK_VERSION: string = "mini-digital-sdk-js-v1.0.0";
export const SDK_VERSION: string = "mini-digital-sdk-js-v1.0.1";

0 comments on commit 7cb77b6

Please sign in to comment.