Prepared for Garden
This commit is contained in:
parent
4900169860
commit
b3f9845f2a
12 changed files with 28 additions and 63 deletions
|
@ -13,7 +13,7 @@ const cairoMiddleware = (req, res, next) => {
|
|||
if (req.token == null) return next();
|
||||
else
|
||||
axios
|
||||
.get(`${process.env.CAIRO_PUBLIC_URL}/user/data`, {
|
||||
.get(`${process.env.CAIRO_URL}/api/user/info`, {
|
||||
headers: { authorization: `Bearer ${req.token}` },
|
||||
})
|
||||
.then((authRes) => {
|
||||
|
|
Reference in a new issue