-
Notifications
You must be signed in to change notification settings - Fork 0
/
portfolio_middleware.js
62 lines (56 loc) · 994 Bytes
/
portfolio_middleware.js
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
const express = require("express");
const path = require("path");
const router = express.Router();
//sending my portfolio other pages
router.use(
"/firm_landing_page",
express.static(
path.join(
__dirname,
"portfolio",
"portfolio",
"LandingPage_FirmLanding",
"public"
)
)
);
router.use(
"/welcome_landing_page",
express.static(
path.join(
__dirname,
"portfolio",
"portfolio",
"LandingPage_Welcome",
"public"
)
)
);
router.use(
"/book_landing_page",
express.static(
path.join(
__dirname,
"portfolio",
"portfolio",
"LandingPage_myBook",
"public"
)
)
);
router.use(
"/presentation_landing_page",
express.static(
path.join(
__dirname,
"portfolio",
"portfolio",
"LandingPage_Present",
"public"
)
)
);
router.use("*", (req, res) => {
res.status(404).send("portfolio item is not found");
});
module.exports = router;