Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions node-client/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ const config = require(path.join(__dirname, '..', 'config.json'));
const API_URL = `http://${config.api.host}:${config.api.port}${config.api.route}`;

// BUG 6 — Le nom du module importé ici est incorrect
const axioss = require('axioss');
const axios = require('axios');

async function getLogs() {
try {
const response = await axioss.get(API_URL);
const response = await axios.get(API_URL);

// BUG 7 — La propriété pour accéder au corps de la réponse avec axios
// ne s'appelle pas .body — cherchez dans la doc axios comment
// accéder aux données de la réponse
const data = response.body;
const data = response.data;

console.log('\n========================================');
console.log(' RAPPORT D\'ANALYSE DES LOGS AZURE ');
Expand Down
339 changes: 339 additions & 0 deletions node-client/node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading