Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: 리팩터링 완료 - #42 #45

Merged
merged 1 commit into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/announcements/announcements.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CreateAnnouncementDto } from './dtos/create-announcement.dto';
import { ResponseBody, SuccessResponse } from 'src/common/response/response';
import { RESPONSE_CODE } from 'src/common/response/response.code';

@Controller('announcement')
@Controller('announcements')
export class AnnouncementsController {
constructor(private readonly announcementsService: AnnouncementsService) {}

Expand Down
2 changes: 0 additions & 2 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { validationSchema } from './config/validationSchema';
import { ConfigModule } from '@nestjs/config';
import { generateTypeOrmConfig } from './config/typeorm.config';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UsersModule } from './users/users.module';
import { RelationentitiesModule } from './relationentities/relationentities.module';
import { TeamsModule } from './teams/teams.module';
import { MeetingsModule } from './meetings/meetings.module';
Expand All @@ -23,7 +22,6 @@ import { AuthModule } from './auth/auth.module';
validationSchema,
}),
TypeOrmModule.forRoot(generateTypeOrmConfig(process.env)),
UsersModule,
TeamsModule,
RelationentitiesModule,
MeetingsModule,
Expand Down
7 changes: 0 additions & 7 deletions src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,4 @@ export class AuthController {
async duplicate(@Query('compareId') id: string): Promise<ResponseBody> {
return await this.authService.duplicate(id);
}

//@Post('test')
//@UseGuards(JwtAuthGuard) //이걸 통해서 jwt를 검증하고 req.user에 user를 넣어준다.
//hello(@AuthUser() user: User) {
// //AuthUser() 데코레이터를 통해서 req.user(실질적인 user)를 가져온다.
// console.log(user);
//}
}
2 changes: 1 addition & 1 deletion src/meetings/meetings.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class MeetingsController {
return await this.meetingService.possibleTime(timeDto, user);
}

@Post('time')
@Post('/time')
@UseGuards(JwtAuthGuard)
async time(
@AuthUser() user: User,
Expand Down
4 changes: 2 additions & 2 deletions src/teams/teams.controller.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
Body,
Controller,
Param,
Get,
Param,
Post,
Put,
UseGuards,
Expand All @@ -16,7 +16,7 @@ import { AuthUser } from 'src/auth/auth-user.decorator';
import { User } from 'src/users/entities/users.entity';
import { JwtAuthGuard } from 'src/common/decorator/auth/jwt/jwt.guard';

@Controller('team')
@Controller('teams')
export class TeamsController {
constructor(private readonly teamsService: TeamsService) {}

Expand Down
12 changes: 0 additions & 12 deletions src/users/users.controller.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/users/users.module.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/users/users.service.ts

This file was deleted.