add redirects

This commit is contained in:
BobTheBob 2021-12-21 00:29:15 +00:00
parent 1e1538973a
commit 71cfb799a0
1 changed files with 19 additions and 0 deletions

19
client/redirect.js Normal file
View File

@ -0,0 +1,19 @@
module.exports = ( fastify, opts, done ) => {
// exported routes
// GET /
// redirect anyone going to northstar.tf in a browser to the github
fastify.get( '/',
async ( request, reply ) => {
reply.redirect( "https://github.com/R2Northstar" )
})
// GET /discord
// redirect anyone going to northstar.tf/discord to the discord
fastify.get( '/discord',
async ( request, reply ) => {
reply.redirect( "https://discord.gg/obama" ) // probably change this at some point
})
done()
}