diff --git a/service/libs/service/src/app.service.ts b/service/libs/service/src/app.service.ts deleted file mode 100644 index f229192..0000000 --- a/service/libs/service/src/app.service.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Injectable} from "@nestjs/common" - -@Injectable() -export class AppService { - getHello(): string { - return "Hello World!" - } -} diff --git a/service/libs/service/src/service.module.ts b/service/libs/service/src/service.module.ts index ad656ee..75eb91b 100644 --- a/service/libs/service/src/service.module.ts +++ b/service/libs/service/src/service.module.ts @@ -1,11 +1,10 @@ import {Module} from "@nestjs/common" -import {AppService} from "./app.service" import {SourceCodeService} from "./source-code.service" import {ExternalModule} from "@libs/external/external.module" @Module({ imports: [ExternalModule], - providers: [AppService, SourceCodeService], - exports: [AppService, SourceCodeService] + providers: [SourceCodeService], + exports: [SourceCodeService] }) export class ServiceModule {} diff --git a/service/libs/service/test/app.service.test.ts b/service/libs/service/test/app.service.test.ts deleted file mode 100644 index c6dd84d..0000000 --- a/service/libs/service/test/app.service.test.ts +++ /dev/null @@ -1,14 +0,0 @@ -import {AppService} from "@libs/service/app.service" - -describe("AppService", () => { - let appService: AppService - - beforeEach(() => { - appService = new AppService() - }) - - it("should return the correct message", () => { - const result = appService.getHello() - expect(result).toBe("Hello World!") - }) -}) diff --git a/service/main/src/app.controller.ts b/service/main/src/app.controller.ts deleted file mode 100644 index c2f4c64..0000000 --- a/service/main/src/app.controller.ts +++ /dev/null @@ -1,12 +0,0 @@ -import {AppService} from "@libs/service/app.service" -import {Controller, Get} from "@nestjs/common" - -@Controller() -export class AppController { - constructor(private readonly appService: AppService) {} - - @Get() - getHello(): string { - return this.appService.getHello() - } -} diff --git a/service/main/src/app.module.ts b/service/main/src/app.module.ts index 6642a11..7500142 100644 --- a/service/main/src/app.module.ts +++ b/service/main/src/app.module.ts @@ -1,11 +1,10 @@ import {Module} from "@nestjs/common" -import {AppController} from "./app.controller" import {ServiceModule} from "@libs/service/service.module" import {SourceCodeController} from "./controller/source-code.controller" @Module({ imports: [ServiceModule], - controllers: [AppController, SourceCodeController], + controllers: [SourceCodeController], providers: [] }) export class AppModule {}