mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-24 15:16:21 -06:00
move + tweak handlers a bit
This commit is contained in:
parent
d69c631b9c
commit
469bd75999
5 changed files with 221 additions and 150 deletions
|
|
@ -52,6 +52,7 @@ import (
|
|||
"github.com/superseriousbusiness/gotosocial/internal/messages"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/middleware"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/oauth"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/oauth/handlers"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/observability"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/oidc"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/processing"
|
||||
|
|
@ -260,7 +261,14 @@ var Start action.GTSAction = func(ctx context.Context) error {
|
|||
|
||||
// Build handlers used in later initializations.
|
||||
mediaManager := media.NewManager(state)
|
||||
oauthServer := oauth.New(ctx, state, apiutil.GetClientScopeHandler(ctx, state))
|
||||
oauthServer := oauth.New(ctx, state,
|
||||
handlers.GetValidateURIHandler(ctx),
|
||||
handlers.GetClientScopeHandler(ctx, state),
|
||||
handlers.GetAuthorizeScopeHandler(),
|
||||
handlers.GetInternalErrorHandler(ctx),
|
||||
handlers.GetResponseErrorHandler(ctx),
|
||||
handlers.GetUserAuthorizationHandler(),
|
||||
)
|
||||
typeConverter := typeutils.NewConverter(state)
|
||||
visFilter := visibility.NewFilter(state)
|
||||
intFilter := interaction.NewFilter(state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue