Files
coolify/apps/api/src/routes/webhooks/gitlab/index.ts
2022-07-14 12:47:26 +00:00

12 lines
459 B
TypeScript

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