mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-18 20:59:24 +00:00
13 lines
557 B
TypeScript
13 lines
557 B
TypeScript
import { FastifyPluginAsync } from 'fastify';
|
|
import { configureGitHubApp, gitHubEvents, installGithub } from './handlers';
|
|
|
|
import type { GitHubEvents, InstallGithub } from './types';
|
|
|
|
const root: FastifyPluginAsync = async (fastify): Promise<void> => {
|
|
fastify.get('/', async (request, reply) => configureGitHubApp(request, reply));
|
|
fastify.get<InstallGithub>('/install', async (request, reply) => installGithub(request, reply));
|
|
fastify.post<GitHubEvents>('/events', async (request, reply) => gitHubEvents(request));
|
|
};
|
|
|
|
export default root;
|