friends-best/server/routes/auth/v1/discord.ts
Louis Hollingworth 14659122c3
All pages now in Nuxt, work next on nav.
DB connected, check issues with writing.

Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
2023-05-16 20:17:33 +01:00

5 lines
302 B
TypeScript

const url = `https://discord.com/api/oauth2/authorize?client_id=1105533416377688174&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fv1%2Fcallback&response_type=code&scope=identify%20guilds%20guilds.members.read`
export default defineEventHandler((event) => {
return sendRedirect(event, url)
})