Files
stats/apps/api/src/routes/oauth-callback.router.ts
2025-02-28 09:19:27 +01:00

18 lines
436 B
TypeScript

import * as controller from '@/controllers/oauth-callback.controller';
import type { FastifyPluginCallback } from 'fastify';
const router: FastifyPluginCallback = async (fastify) => {
fastify.route({
method: 'GET',
url: '/github/callback',
handler: controller.githubCallback,
});
fastify.route({
method: 'GET',
url: '/google/callback',
handler: controller.googleCallback,
});
};
export default router;