starting a widget page
This commit is contained in:
parent
5adbaf0218
commit
9debca0e05
2 changed files with 11 additions and 0 deletions
|
@ -76,6 +76,17 @@ module.exports = (client) => {
|
||||||
app.get('/invite', async (req, res) => {
|
app.get('/invite', async (req, res) => {
|
||||||
res.redirect(invite);
|
res.redirect(invite);
|
||||||
});
|
});
|
||||||
|
app.get('/widgets', async (req, res) => {
|
||||||
|
res.status(200).render('widgets', {
|
||||||
|
layout: 'main',
|
||||||
|
lists: {
|
||||||
|
topgg: `<a href="https://top.gg/bot/434662676547764244" >
|
||||||
|
<img src="https://top.gg/api/widget/434662676547764244.svg" alt="Thaldrin" />
|
||||||
|
</a>`,
|
||||||
|
x: 'Not a real List'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
/* app.get('/this', async (req, res) => {
|
/* app.get('/this', async (req, res) => {
|
||||||
res.json(client);
|
res.json(client);
|
||||||
}); */
|
}); */
|
||||||
|
|
0
views/widgets.hbs
Normal file
0
views/widgets.hbs
Normal file
Loading…
Reference in a new issue