Skip to content

Commit

Permalink
refactor: use api version from env file
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMaruchu committed Apr 17, 2019
1 parent 01743c2 commit 4eed774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/http.router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 4eed774

Please sign in to comment.