From 4eed774f94742bec4e2ec135917e5a0fdff69aa2 Mon Sep 17 00:00:00 2001 From: Benson Maruchu Date: Wed, 17 Apr 2019 15:21:20 +0300 Subject: [PATCH] refactor: use api version from env file --- lib/http.router.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/http.router.js b/lib/http.router.js index 494d1e7..eb984af 100644 --- a/lib/http.router.js +++ b/lib/http.router.js @@ -145,12 +145,12 @@ /* dependencies */ const path = require('path'); const _ = require('lodash'); -const { env } = require('@codetanzania/majifix-common'); +const {getString} = require('@lykmapipo/env'); const Router = require('@lykmapipo/express-common').Router; /* local constants */ -const { API_VERSION } = env; +const API_VERSION = getString('API_VERSION','1.0.0') ; const PATH_LIST = '/servicerequests'; const PATH_SINGLE = '/servicerequests/:id'; const PATH_JURISDICTION = '/jurisdictions/:jurisdiction/servicerequests';