From b32c3193e517b8a62249776e2551110cf98cc239 Mon Sep 17 00:00:00 2001 From: Ofek Ashery Date: Thu, 25 Apr 2019 12:32:03 +0300 Subject: [PATCH] Update the API base URL (#8) * Update the API base URL * Update version * Fix the failing test --- lib/api-config.js | 4 ++-- package.json | 2 +- test/fixtures/files.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/api-config.js b/lib/api-config.js index 32ec8dd..a54f811 100644 --- a/lib/api-config.js +++ b/lib/api-config.js @@ -1,5 +1,5 @@ -export const baseUrl = 'https://svc.mashov.info/api'; -export const apiVersion = '3.2017032'; +export const baseUrl = 'https://web.mashov.info/api'; +export const apiVersion = '3.20190301'; export const appName = 'com.mashov.main'; export const endpoints = { diff --git a/package.json b/package.json index f6bfe19..c2d74ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-mashov", - "version": "0.2.2", + "version": "0.2.3", "description": "A wrapper for Mashov API", "keywords": [ "mashov", diff --git a/test/fixtures/files.json b/test/fixtures/files.json index a12dae5..66d3f6d 100644 --- a/test/fixtures/files.json +++ b/test/fixtures/files.json @@ -8,6 +8,6 @@ "id": 10, "name": "File.txt", "groupName": "Group1", - "url": "https://svc.mashov.info/api/students/0000/files/10/File.txt" + "url": "https://web.mashov.info/api/students/0000/files/10/File.txt" }] }