Skip to content

Commit

Permalink
feat: app is running
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevo David committed Sep 23, 2024
1 parent 94170d1 commit 0c6e3b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/backend/src/api/api.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { PermissionsService } from '@gitroom/backend/services/auth/permissions/p
import { IntegrationsController } from '@gitroom/backend/api/routes/integrations.controller';
import { IntegrationManager } from '@gitroom/nestjs-libraries/integrations/integration.manager';
import { SettingsController } from '@gitroom/backend/api/routes/settings.controller';
import { ioRedis } from '@gitroom/nestjs-libraries/redis/redis.service';
import { PostsController } from '@gitroom/backend/api/routes/posts.controller';
import { MediaController } from '@gitroom/backend/api/routes/media.controller';
import { UploadModule } from '@gitroom/nestjs-libraries/upload/upload.module';
Expand All @@ -27,6 +26,7 @@ import { CodesService } from '@gitroom/nestjs-libraries/services/codes.service';
import { CopilotController } from '@gitroom/backend/api/routes/copilot.controller';
import { AgenciesController } from '@gitroom/backend/api/routes/agencies.controller';
import { PublicController } from '@gitroom/backend/api/routes/public.controller';
import { RootController } from '@gitroom/backend/api/routes/root.controller';

const authenticatedController = [
UsersController,
Expand Down Expand Up @@ -60,6 +60,7 @@ const authenticatedController = [
: []),
],
controllers: [
RootController,
StripeController,
AuthController,
PublicController,
Expand Down
8 changes: 8 additions & 0 deletions apps/backend/src/api/routes/root.controller.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Controller, Get } from '@nestjs/common';
@Controller('/')
export class RootController {
@Get('/')
getRoot(): string {
return 'App is running!';
}
}

0 comments on commit 0c6e3b1

Please sign in to comment.