import { FastifyPluginAsync } from 'fastify'; import { configureGitLabApp, gitLabEvents } from './handlers'; import type { ConfigureGitLabApp, GitLabEvents } from './types'; const root: FastifyPluginAsync = async (fastify): Promise => { fastify.get('/', async (request, reply) => configureGitLabApp(request, reply)); fastify.post('/events', async (request) => gitLabEvents(request)); }; export default root;