Showing
1 changed file
with
8 additions
and
0 deletions
@@ -15,6 +15,7 @@ const Timer = require('./timer'); | @@ -15,6 +15,7 @@ const Timer = require('./timer'); | ||
15 | const config = require('../config/common'); | 15 | const config = require('../config/common'); |
16 | const api = config.domains.api; | 16 | const api = config.domains.api; |
17 | const serviceApi = config.domains.service; | 17 | const serviceApi = config.domains.service; |
18 | +const searchApi = config.domains.search; | ||
18 | 19 | ||
19 | class Http { | 20 | class Http { |
20 | 21 | ||
@@ -182,5 +183,12 @@ class ServiceAPI extends Http { | @@ -182,5 +183,12 @@ class ServiceAPI extends Http { | ||
182 | } | 183 | } |
183 | } | 184 | } |
184 | 185 | ||
186 | +class SearchAPI extends Http { | ||
187 | + constructor() { | ||
188 | + super(searchApi); | ||
189 | + } | ||
190 | +} | ||
191 | + | ||
185 | exports.API = API; | 192 | exports.API = API; |
186 | exports.ServiceAPI = ServiceAPI; | 193 | exports.ServiceAPI = ServiceAPI; |
194 | +exports.SearchAPI = SearchAPI; |
-
Please register or login to post a comment