fix: file upload and OAuth2 (#10)
This commit is contained in:
@ -20,6 +20,12 @@ import { getCallbackGoogleOAuth2Service } from './oauth2/google/callback/get.js'
|
||||
import { getSigninGitHubOAuth2Service } from './oauth2/github/signin/get.js'
|
||||
import { getCallbackGitHubOAuth2Service } from './oauth2/github/callback/get.js'
|
||||
import { deleteProviderService } from './oauth2/[provider]/delete.js'
|
||||
import { getCallbackAddStrategyDiscordOAuth2Service } from './oauth2/discord/callback-add-strategy/get.js'
|
||||
import { getAddStrategyDiscordOAuth2Service } from './oauth2/discord/add-strategy/get.js'
|
||||
import { getAddStrategyGitHubOAuth2Service } from './oauth2/github/add-strategy/get.js'
|
||||
import { getCallbackAddStrategyGitHubOAuth2Service } from './oauth2/github/callback-add-strategy/get.js'
|
||||
import { getCallbackAddStrategyGoogleOAuth2Service } from './oauth2/google/callback-add-strategy/get.js'
|
||||
import { getAddStrategyGoogleOAuth2Service } from './oauth2/google/add-strategy/get.js'
|
||||
|
||||
export const usersService: FastifyPluginAsync = async (fastify) => {
|
||||
await fastify.register(postSignupUser)
|
||||
@ -38,12 +44,18 @@ export const usersService: FastifyPluginAsync = async (fastify) => {
|
||||
|
||||
await fastify.register(getSigninDiscordOAuth2Service)
|
||||
await fastify.register(getCallbackDiscordOAuth2Service)
|
||||
await fastify.register(getCallbackAddStrategyDiscordOAuth2Service)
|
||||
await fastify.register(getAddStrategyDiscordOAuth2Service)
|
||||
|
||||
await fastify.register(getSigninGoogleOAuth2Service)
|
||||
await fastify.register(getCallbackGoogleOAuth2Service)
|
||||
await fastify.register(getCallbackAddStrategyGoogleOAuth2Service)
|
||||
await fastify.register(getAddStrategyGoogleOAuth2Service)
|
||||
|
||||
await fastify.register(getSigninGitHubOAuth2Service)
|
||||
await fastify.register(getCallbackGitHubOAuth2Service)
|
||||
await fastify.register(getCallbackAddStrategyGitHubOAuth2Service)
|
||||
await fastify.register(getAddStrategyGitHubOAuth2Service)
|
||||
|
||||
await fastify.register(deleteProviderService)
|
||||
}
|
||||
|
Reference in New Issue
Block a user