Commit b096d2fa authored by Rune Myrhaug's avatar Rune Myrhaug
Browse files

debug api-kall

parent 218588f2
Pipeline #2976 passed with stages
in 1 minute and 30 seconds
......@@ -334,8 +334,19 @@ class EduLab {
var data = this.getCommonAttributes(req);
console.log("View PowerBiReport", data);
data.x = JSON.stringify(data, undefined, 1);
res.render('powerbireport', data);
this.getAPI(req, '/report')
.then((apidata) => {
data.powerbireport = apidata;
})
.then(() => {
data.x = JSON.stringify(data, undefined, 1);
res.render('powerbireport', data);
})
.catch((err) => {
console.error("Error powerbireport page", err);
res.render('error', err);
})
}
......
......@@ -3,7 +3,11 @@
<div class="container">
<!--
<iframe width="933" height="700" src="https://app.powerbi.com/view?r=eyJrIjoiY2EyNjZiM2UtNDRjOS00MGE1LWE3NGQtYzMxMDQ1YTBkZDg5IiwidCI6IjY4NzYzZTNkLTQ2MTUtNDIyMi05ODhmLTkwYmExM2UzNTFlOSIsImMiOjh9" frameborder="0" allowFullScreen="true"></iframe>
-->
<pre>{{x}}</pre>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment