Skip to content
Snippets Groups Projects
Commit 4c2e170f authored by Nathan Perriolat's avatar Nathan Perriolat
Browse files

logging

parent 62edf399
No related branches found
No related tags found
No related merge requests found
...@@ -99,6 +99,7 @@ async function getUsers(req,res){ ...@@ -99,6 +99,7 @@ async function getUsers(req,res){
} }
}`; }`;
const query = `https://api.linkcs.fr/v1/graphql/?query=${encodeURIComponent(request)}`; const query = `https://api.linkcs.fr/v1/graphql/?query=${encodeURIComponent(request)}`;
console.log(query)
await fetch(query, { await fetch(query, {
method: 'GET', method: 'GET',
headers: { headers: {
......
...@@ -119,7 +119,7 @@ function authMiddleware(req, res, next) { ...@@ -119,7 +119,7 @@ function authMiddleware(req, res, next) {
if ('ids' in req.session){ if ('ids' in req.session){
return next(); return next();
} }
res.redirect('/'); res.redirect('/api/login');
} }
exports.getRedirectURI = getRedirectURI; exports.getRedirectURI = getRedirectURI;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment