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.
api/src/services/guilds/index.ts

20 lines
830 B
TypeScript

import { FastifyPluginAsync } from 'fastify'
import { getGuilds } from './get.js'
import { postGuilds } from './post.js'
import { getGuildsPublic } from './public/get.js'
import { getChannelsByGuildIdService } from './[guildId]/channels/get.js'
import { getGuildMemberByIdService } from './[guildId]/get.js'
import { putGuildIconById } from './[guildId]/icon/put.js'
import { getMembersByGuildIdService } from './[guildId]/members/get.js'
export const guildsService: FastifyPluginAsync = async (fastify) => {
await fastify.register(postGuilds)
await fastify.register(getGuilds)
await fastify.register(putGuildIconById)
await fastify.register(getGuildMemberByIdService)
await fastify.register(getChannelsByGuildIdService)
await fastify.register(getGuildsPublic)
await fastify.register(getMembersByGuildIdService)
}