Update 'server.js'

This commit is contained in:
hokkqi 2020-06-28 17:23:11 +02:00
parent 7918b3e728
commit b103b81c92

View file

@ -87,6 +87,11 @@ module.exports = async => {
name: "Youtube", name: "Youtube",
link: "sor.dog/youtube", link: "sor.dog/youtube",
character: breakSocials("Youtube") character: breakSocials("Youtube")
},
{
name: "Discord",
link: "sor.dog/discord",
character: breakSocials("Discord")
} }
] ]
}); });
@ -110,6 +115,9 @@ module.exports = async => {
app.get("/youtube", (req, res) => { app.get("/youtube", (req, res) => {
res.redirect(con.socials.youtube); res.redirect(con.socials.youtube);
}); });
app.get("/discord", (req, res) => {
res.redirect(con.socials.discord);
});
app.listen(port /* , hostname */, () => { app.listen(port /* , hostname */, () => {
console.log(`[ Server ] Listening on ${port}`); console.log(`[ Server ] Listening on ${port}`);