Skip to content

Commit

Permalink
Merge pull request #58 from boostcampwm2023/feat/57-introduction-vide…
Browse files Browse the repository at this point in the history
…o-api

[Feat] 소개 페이지 영상 API 구현
  • Loading branch information
JoonSoo-Kim authored Nov 19, 2023
2 parents aaad510 + 9c1a79f commit 8b09238
Show file tree
Hide file tree
Showing 7 changed files with 314 additions and 1 deletion.
225 changes: 225 additions & 0 deletions BE/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions BE/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@nestjs/platform-express": "^10.0.0",
"@nestjs/typeorm": "^10.0.0",
"@types/dotenv": "^8.2.0",
"aws-sdk": "^2.1499.0",
"class-validator": "^0.14.0",
"dotenv": "^16.3.1",
"mysql2": "^3.6.3",
Expand Down
8 changes: 7 additions & 1 deletion BE/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ import { TypeOrmModule } from "@nestjs/typeorm";
import { typeORMConfig } from "./configs/typeorm.config";
import { UsersModule } from "./users/users.module";
import { DiariesModule } from "./diaries/diaries.module";
import { IntroduceModule } from "./introduce/introduce.module";

@Module({
imports: [TypeOrmModule.forRoot(typeORMConfig), UsersModule, DiariesModule],
imports: [
TypeOrmModule.forRoot(typeORMConfig),
UsersModule,
DiariesModule,
IntroduceModule,
],
})
export class AppModule {}
12 changes: 12 additions & 0 deletions BE/src/introduce/introduce.controller.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Controller, Get } from "@nestjs/common";
import { IntroduceService } from "./introduce.service";

@Controller("introduce")
export class IntroduceController {
constructor(private introduceService: IntroduceService) {}

@Get()
async getIntroduceVideo(): Promise<object> {
return this.introduceService.getIntroduceVideo();
}
}
10 changes: 10 additions & 0 deletions BE/src/introduce/introduce.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Module } from "@nestjs/common";
import { IntroduceController } from "./introduce.controller";
import { IntroduceService } from "./introduce.service";

@Module({
imports: [],
controllers: [IntroduceController],
providers: [IntroduceService],
})
export class IntroduceModule {}
9 changes: 9 additions & 0 deletions BE/src/introduce/introduce.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Injectable } from "@nestjs/common";
import { getFileFromS3 } from "src/utils/e3";

@Injectable()
export class IntroduceService {
async getIntroduceVideo(): Promise<object> {
return getFileFromS3("test.mp4");
}
}
Loading

0 comments on commit 8b09238

Please sign in to comment.