Updated envar flow
This commit is contained in:
parent
efa7b6ed11
commit
db6769f0e7
5 changed files with 22 additions and 28 deletions
|
@ -13,7 +13,7 @@ const cairoMiddleware = (req, res, next) => {
|
|||
if (req.token == null) return next();
|
||||
else
|
||||
axios
|
||||
.get(`${process.env.CAIRO_URL}/user/data`, {
|
||||
.get(`${process.env.CAIRO_PUBLIC_URL}/user/data`, {
|
||||
headers: { authorization: `Bearer ${req.token}` },
|
||||
})
|
||||
.then((authRes) => {
|
||||
|
|
Reference in a new issue