mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 08:33:09 +02:00
eb7b5f905a
* feat(backend): support OAuth 2.0 authorization * secureRndstr fix * nanndekowareta * nanndekowareta2 * nanndekowareta3 * unref? * refactor to not close fastify * use microformats-parser * Update OAuth2ProviderService.ts * clarify the reason behind dns lookup * refactor(backend): use @types/oauth2orize-pkce (#11350) * refactor(backend): use @types/oauth2orize-pkce * Update package.json * Update pnpm-lock.yaml --------- Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com> --------- Co-authored-by: mtgto <hogerappa@gmail.com> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
93 lines
3.7 KiB
TypeScript
93 lines
3.7 KiB
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { Module } from '@nestjs/common';
|
|
import { EndpointsModule } from '@/server/api/EndpointsModule.js';
|
|
import { CoreModule } from '@/core/CoreModule.js';
|
|
import { ApiCallService } from './api/ApiCallService.js';
|
|
import { FileServerService } from './FileServerService.js';
|
|
import { NodeinfoServerService } from './NodeinfoServerService.js';
|
|
import { ServerService } from './ServerService.js';
|
|
import { WellKnownServerService } from './WellKnownServerService.js';
|
|
import { GetterService } from './api/GetterService.js';
|
|
import { ChannelsService } from './api/stream/ChannelsService.js';
|
|
import { ActivityPubServerService } from './ActivityPubServerService.js';
|
|
import { ApiLoggerService } from './api/ApiLoggerService.js';
|
|
import { ApiServerService } from './api/ApiServerService.js';
|
|
import { AuthenticateService } from './api/AuthenticateService.js';
|
|
import { RateLimiterService } from './api/RateLimiterService.js';
|
|
import { SigninApiService } from './api/SigninApiService.js';
|
|
import { SigninService } from './api/SigninService.js';
|
|
import { SignupApiService } from './api/SignupApiService.js';
|
|
import { StreamingApiServerService } from './api/StreamingApiServerService.js';
|
|
import { ClientServerService } from './web/ClientServerService.js';
|
|
import { FeedService } from './web/FeedService.js';
|
|
import { UrlPreviewService } from './web/UrlPreviewService.js';
|
|
import { MainChannelService } from './api/stream/channels/main.js';
|
|
import { AdminChannelService } from './api/stream/channels/admin.js';
|
|
import { AntennaChannelService } from './api/stream/channels/antenna.js';
|
|
import { ChannelChannelService } from './api/stream/channels/channel.js';
|
|
import { DriveChannelService } from './api/stream/channels/drive.js';
|
|
import { GlobalTimelineChannelService } from './api/stream/channels/global-timeline.js';
|
|
import { HashtagChannelService } from './api/stream/channels/hashtag.js';
|
|
import { HomeTimelineChannelService } from './api/stream/channels/home-timeline.js';
|
|
import { HybridTimelineChannelService } from './api/stream/channels/hybrid-timeline.js';
|
|
import { LocalTimelineChannelService } from './api/stream/channels/local-timeline.js';
|
|
import { QueueStatsChannelService } from './api/stream/channels/queue-stats.js';
|
|
import { ServerStatsChannelService } from './api/stream/channels/server-stats.js';
|
|
import { UserListChannelService } from './api/stream/channels/user-list.js';
|
|
import { OpenApiServerService } from './api/openapi/OpenApiServerService.js';
|
|
import { ClientLoggerService } from './web/ClientLoggerService.js';
|
|
import { RoleTimelineChannelService } from './api/stream/channels/role-timeline.js';
|
|
import { OAuth2ProviderService } from './oauth/OAuth2ProviderService.js';
|
|
|
|
@Module({
|
|
imports: [
|
|
EndpointsModule,
|
|
CoreModule,
|
|
],
|
|
providers: [
|
|
ClientServerService,
|
|
ClientLoggerService,
|
|
FeedService,
|
|
UrlPreviewService,
|
|
ActivityPubServerService,
|
|
FileServerService,
|
|
NodeinfoServerService,
|
|
ServerService,
|
|
WellKnownServerService,
|
|
GetterService,
|
|
ChannelsService,
|
|
ApiCallService,
|
|
ApiLoggerService,
|
|
ApiServerService,
|
|
AuthenticateService,
|
|
RateLimiterService,
|
|
SigninApiService,
|
|
SigninService,
|
|
SignupApiService,
|
|
StreamingApiServerService,
|
|
MainChannelService,
|
|
AdminChannelService,
|
|
AntennaChannelService,
|
|
ChannelChannelService,
|
|
DriveChannelService,
|
|
GlobalTimelineChannelService,
|
|
HashtagChannelService,
|
|
RoleTimelineChannelService,
|
|
HomeTimelineChannelService,
|
|
HybridTimelineChannelService,
|
|
LocalTimelineChannelService,
|
|
QueueStatsChannelService,
|
|
ServerStatsChannelService,
|
|
UserListChannelService,
|
|
OpenApiServerService,
|
|
OAuth2ProviderService,
|
|
],
|
|
exports: [
|
|
ServerService,
|
|
],
|
|
})
|
|
export class ServerModule {}
|