* init router endpoint for v2 * fixup fixup * resolve merge conflicts * update libraries * update router controller * make router endpoint public * chore: refactor router endpoint and add team/org id * cleanup * chore: Only import Sentry when needed (#18882) * perf: prerender routes in main navigation (#18883) * chore: migrate /apps/categories pages (#18871) * migrate apps/categories pages * remove pages dir * chore: app router - /payment pages (#18152) * remove Head from payment page comp * remove route from pages router * move out of future folder * add to config.matcher * remove unneeded code * update middleware * fix * fix * perf: replace `getServerSessionForAppDir` usages with our original `getServerSession` function (#18897) * chore: migrate /apps/installation pages (#18870) * migrate apps/installation pages * fix test * chore: migrate `/auth/logout` (#18901) * migrate /auth/verify-email page * update middleware * migrate /auth/logout page * expose router endpoint * small refactor pageprops not necessary * sentry is already tracking performance * reuse logic * fixup! reuse logic * fixup! fixup! reuse logic * fixup! fixup! fixup! reuse logic --------- Co-authored-by: Morgan Vernay <[email protected]> Co-authored-by: Alex van Andel <[email protected]> Co-authored-by: Benny Joo <[email protected]> Co-authored-by: Morgan <[email protected]>
37 lines
1.3 KiB
TypeScript
37 lines
1.3 KiB
TypeScript
import { PlatformEndpointsModule } from "@/ee/platform-endpoints-module";
|
|
import { AtomsModule } from "@/modules/atoms/atoms.module";
|
|
import { BillingModule } from "@/modules/billing/billing.module";
|
|
import { ConferencingModule } from "@/modules/conferencing/conferencing.module";
|
|
import { DestinationCalendarsModule } from "@/modules/destination-calendars/destination-calendars.module";
|
|
import { OAuthClientModule } from "@/modules/oauth-clients/oauth-client.module";
|
|
import { RouterModule } from "@/modules/router/router.module";
|
|
import { StripeModule } from "@/modules/stripe/stripe.module";
|
|
import { TimezoneModule } from "@/modules/timezones/timezones.module";
|
|
import type { MiddlewareConsumer, NestModule } from "@nestjs/common";
|
|
import { Module } from "@nestjs/common";
|
|
|
|
import { UsersModule } from "./users/users.module";
|
|
import { WebhooksModule } from "./webhooks/webhooks.module";
|
|
|
|
@Module({
|
|
imports: [
|
|
OAuthClientModule,
|
|
BillingModule,
|
|
PlatformEndpointsModule,
|
|
TimezoneModule,
|
|
UsersModule,
|
|
WebhooksModule,
|
|
DestinationCalendarsModule,
|
|
AtomsModule,
|
|
StripeModule,
|
|
ConferencingModule,
|
|
RouterModule,
|
|
],
|
|
})
|
|
export class EndpointsModule implements NestModule {
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
configure(_consumer: MiddlewareConsumer) {
|
|
// TODO: apply ratelimits
|
|
}
|
|
}
|