Skip to content

Commit

Permalink
OV-404: + controller
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiy4 committed Sep 25, 2024
1 parent 86b0c55 commit f3a9ea9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions backend/src/bundles/templates/templates.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { logger } from '~/common/logger/logger.js';

import { TemplateController } from './templates.controller.js';
import { TemplateModel } from './templates.model.js';
import { TemplateRepository } from './templates.repository.js';
import { TemplateService } from './templates.service.js';

const templateRepository = new TemplateRepository(TemplateModel);
const templateService = new TemplateService(templateRepository);
const templateController = new TemplateController(logger, templateService);

export { templateController };
2 changes: 2 additions & 0 deletions backend/src/common/server-application/server-application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { avatarController } from '~/bundles/avatars/avatars.js';
import { chatController } from '~/bundles/chat/chat.js';
import { notificationController } from '~/bundles/notifications/notifications.js';
import { speechController } from '~/bundles/speech/speech.js';
import { templateController } from '~/bundles/templates/templates.js';
import { userController } from '~/bundles/users/users.js';
import { videoController } from '~/bundles/videos/videos.js';
import { config } from '~/common/config/config.js';
Expand All @@ -24,6 +25,7 @@ const apiV1 = new BaseServerAppApi(
...chatController.routes,
...speechController.routes,
...avatarVideoController.routes,
...templateController.routes,
);

const serverApp = new BaseServerApp({
Expand Down

0 comments on commit f3a9ea9

Please sign in to comment.