@vasrefil/api-toolkit 1.0.45 → 1.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -93,9 +93,9 @@ class AdminAuthMidWare_ extends _root_service_1.RootService {
|
|
|
93
93
|
const baseurl = env_1.default.VASREFIL.BASEURL;
|
|
94
94
|
delete req.headers['host'];
|
|
95
95
|
delete req.headers['content-length'];
|
|
96
|
+
req.headers['x-service-name'] = env_1.default.SERVICE_NAME;
|
|
96
97
|
const headers = {
|
|
97
98
|
Authorization: req.headers.authorization,
|
|
98
|
-
'x-service-name': env_1.default.SERVICE_NAME,
|
|
99
99
|
};
|
|
100
100
|
const { data } = await axios_1.default.get(`${baseurl}/admin-users/details`, { headers });
|
|
101
101
|
return { admin_user: data.data.user };
|