fix: more types for API
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { FastifyPluginAsync } from 'fastify';
|
||||
import { configureGitLabApp, gitLabEvents } from './handlers';
|
||||
|
||||
const root: FastifyPluginAsync = async (fastify, opts): Promise<void> => {
|
||||
fastify.get('/', async (request, reply) => configureGitLabApp(request, reply));
|
||||
fastify.post('/events', async (request, reply) => gitLabEvents(request, reply));
|
||||
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;
|
||||
|
Reference in New Issue
Block a user