-
Notifications
You must be signed in to change notification settings - Fork 0
/
router.js
44 lines (32 loc) · 973 Bytes
/
router.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
const fs = require('fs');
module.exports = async (app, options) => {
app.get('/', async (req, res) => {
console.log("[200]", `${req.method} ${req.url}`)
let stream = fs.createReadStream("./public/index.html")
res.type("text/html").send(stream)
});
app.get('/profil', async (req, res) => {
res.redirect("/")
});
app.get('/activity', async (req, res) => {
res.redirect("/")
});
app.get('/comments', async (req, res) => {
res.redirect("/")
});
app.get('/posts', async (req, res) => {
res.redirect("/")
});
app.get('/videos', async (req, res) => {
res.redirect("/")
});
app.get('/settings', async (req, res) => {
res.redirect("/")
});
app.get('/ads', async (req, res) => {
res.redirect("/")
});
app.get('/about', async (req, res) => {
res.redirect("/")
});
}