forked from blackducksca-workflow-samples/automatic-fixpr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorial.js
More file actions
39 lines (34 loc) · 637 Bytes
/
tutorial.js
File metadata and controls
39 lines (34 loc) · 637 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const express = require("express");
const {
environmentalScripts
} = require("../../config/config");
const router = express.Router();
router.get("/", (req, res) => {
"use strict";
return res.render("tutorial/a1", {
environmentalScripts
});
});
const pages = [
"a1",
"a2",
"a3",
"a4",
"a5",
"a6",
"a7",
"a8",
"a9",
"a10",
"redos",
"ssrf"
];
for(const page of pages) {
router.get(`/${page}`, (req, res) => {
"use strict";
return res.render(`tutorial/${page}`, {
environmentalScripts
});
});
}
module.exports = router;