Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

Commit

Permalink
Add routes in dedicated tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
eckon committed May 12, 2020
1 parent 68ce29b commit 1a98a08
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/games/games.controller.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { Get, Controller, Param, Post, Body, Delete } from '@nestjs/common';
import { GamesService } from './games.service';
import { Game } from './game.entity';
import { ApiResponse } from '@nestjs/swagger';
import { ApiResponse, ApiTags } from '@nestjs/swagger';
import { PostGame } from '../modules/PostGame';
import { UsersService } from '../users/users.service';
import { GameSnapshot } from '../modules/GameSnapshot';
import { UserSnapshot } from '../modules/UserSnapshot';

@ApiTags('games')
@Controller('games')
export class GamesController {
constructor(
Expand Down
3 changes: 2 additions & 1 deletion src/round-informations/roundInformations.controller.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Get, Controller, Param } from '@nestjs/common';
import { RoundInformationsService } from './roundInformations.service';
import { RoundInformation } from './roundInformation.entity';
import { ApiResponse } from '@nestjs/swagger';
import { ApiResponse, ApiTags } from '@nestjs/swagger';

@ApiTags('roundinformations')
@Controller('roundinformations')
export class RoundInformationsController {
constructor(
Expand Down
3 changes: 2 additions & 1 deletion src/rounds/rounds.controller.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { Get, Controller, Param, Post, Body } from '@nestjs/common';
import { ApiResponse } from '@nestjs/swagger';
import { ApiResponse, ApiTags } from '@nestjs/swagger';
import { Round } from './round.entity';
import { RoundsService } from './rounds.service';
import { PostRound } from '../modules/PostRound';
import { PostRoundResult } from '../modules/PostRoundResult';

@ApiTags('rounds')
@Controller('rounds')
export class RoundsController {
constructor(private readonly roundsService: RoundsService) {}
Expand Down
3 changes: 2 additions & 1 deletion src/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import {
} from '@nestjs/common';
import { UsersService } from './users.service';
import { User } from './user.entity';
import { ApiResponse } from '@nestjs/swagger';
import { ApiResponse, ApiTags } from '@nestjs/swagger';

@ApiTags('users')
@Controller('users')
export class UsersController {
constructor(private readonly usersService: UsersService) {}
Expand Down

0 comments on commit 1a98a08

Please sign in to comment.