-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathindex.js
61 lines (45 loc) · 1.52 KB
/
index.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
const express = require('express')
const app = express()
app.set('view engine', 'ejs');
app.set('views', __dirname + '/views',);
const { name, description, invite, support, pfp, feature1, feature2, feature3, feature4 } = require("./config.json")
const port = 8000
app.listen(port, () => {
console.log(`Website is working `)
})
app.use(express.static("assets"));
// 35.186.245.55
app.get('/', (req, res) => {
res.render("index", {name: name, description: description, invite: invite, support: support, pfp: pfp, f1: feature1, f2: feature2, f3: feature3, f4: feature4});
});
// SOCIAL LINKS [Diwas Atreya]
app.get('/discord', async (req, res) => {
res.redirect(support)
});
app.get('/server', async (req, res) => {
res.redirect(support)
});
app.get('/youtube', async (req, res) => {
res.redirect(`https://www.youtube.com/c/Kp18Gamer`)
});
app.get('/invite', async (req, res) => {
res.redirect(invite)
});
app.get('/github', async (req, res) => {
res.redirect(`https://github.com/diwasatreya`)
});
app.get('/git', async (req, res) => {
res.redirect(`https://github.com/diwasatreya`)
});
app.get('/instagram', async (req, res) => {
res.redirect(`https://www.instagram.com/atreyadiwas/`)
});
app.get('/ig', async (req, res) => {
res.redirect(`https://www.instagram.com/atreyadiwas/`)
});
app.get('/twitter', async (req, res) => {
res.redirect(`https://www.instagram.com/atreyadiwas/`)
});
app.get('/reddit', async (req, res) => {
res.redirect(`https://www.reddit.com/r/programmingwithmemes`)
});