This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.

18 lines
872 B
TypeScript

import type { FastifyPluginAsync } from 'fastify'
import { deleteChannelService } from './[channelId]/delete.js'
import { getChannelByIdService } from './[channelId]/get.js'
import { getMessagesByChannelIdService } from './[channelId]/messages/get.js'
import { postMessageByChannelIdService } from './[channelId]/messages/post.js'
import { postMessageUploadsByChannelIdService } from './[channelId]/messages/uploads/post.js'
import { putChannelService } from './[channelId]/put.js'
export const channelsService: FastifyPluginAsync = async (fastify) => {
await fastify.register(getChannelByIdService)
await fastify.register(getMessagesByChannelIdService)
await fastify.register(postMessageByChannelIdService)
await fastify.register(postMessageUploadsByChannelIdService)
await fastify.register(putChannelService)
await fastify.register(deleteChannelService)
}