starting a widget page

This commit is contained in:
codepupper 2019-11-18 10:38:51 +01:00
parent 5adbaf0218
commit 9debca0e05
2 changed files with 11 additions and 0 deletions

View File

@ -76,6 +76,17 @@ module.exports = (client) => {
app.get('/invite', async (req, res) => {
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) => {
res.json(client);
}); */

0
views/widgets.hbs Normal file
View File