Commit 2d486772 authored by Rune Myrhaug's avatar Rune Myrhaug
Browse files

add powerBiReport Code

parent e81e1019
Pipeline #2972 passed with stages
in 1 minute and 27 seconds
......@@ -24,6 +24,7 @@ class EduLab {
this.router = express.Router()
this.router.get('/', (req, res) => this.frontpage(req, res) );
this.router.get('/debug', (req, res) => this.debug(req, res) );
this.router.get('/powerbireport', (req, res) => this.powerbireport(req, res) );
this.router.get('/create-lab', (req, res) => this.createLab(req, res) );
this.router.get('/lab/:labid', (req, res) => this.labview(req, res) );
this.router.get('/rdp', (req, res) => this.rdp(req, res) );
......@@ -329,6 +330,15 @@ class EduLab {
}
powerbireport(req, res) {
var data = this.getCommonAttributes(req);
console.log("View PowerBiReport", data);
data.x = JSON.stringify(data, undefined, 1);
res.render('powerbireport', data);
}
debug(req, res) {
var data = this.getCommonAttributes(req);
......
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