add redirects
This commit is contained in:
parent
1e1538973a
commit
71cfb799a0
|
@ -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()
|
||||
}
|
Loading…
Reference in New Issue