Showing
6 changed files
with
14 additions
and
6 deletions
| @@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
| 7 | "license": "UNLICENSED", | 7 | "license": "UNLICENSED", |
| 8 | "scripts": { | 8 | "scripts": { |
| 9 | "build": "nest build", | 9 | "build": "nest build", |
| 10 | - "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", | 10 | + "format": "prettier --write \"src/**/*.ts\"", |
| 11 | "start": "nest start", | 11 | "start": "nest start", |
| 12 | "start:dev": "nest start --watch", | 12 | "start:dev": "nest start --watch", |
| 13 | "start:debug": "nest start --debug --watch", | 13 | "start:debug": "nest start --debug --watch", |
| @@ -8,4 +8,4 @@ import { UsersModule } from '../users/users.module'; | @@ -8,4 +8,4 @@ import { UsersModule } from '../users/users.module'; | ||
| 8 | controllers: [AppController], | 8 | controllers: [AppController], |
| 9 | providers: [AppService], | 9 | providers: [AppService], |
| 10 | }) | 10 | }) |
| 11 | -export class AppModule { } | 11 | +export class AppModule {} |
| 1 | -import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common'; | 1 | +import { |
| 2 | + Controller, | ||
| 3 | + Get, | ||
| 4 | + Post, | ||
| 5 | + Body, | ||
| 6 | + Patch, | ||
| 7 | + Param, | ||
| 8 | + Delete, | ||
| 9 | +} from '@nestjs/common'; | ||
| 2 | import { AuthService } from './auth.service'; | 10 | import { AuthService } from './auth.service'; |
| 3 | import { CreateAuthDto } from './dto/create-auth.dto'; | 11 | import { CreateAuthDto } from './dto/create-auth.dto'; |
| 4 | import { UpdateAuthDto } from './dto/update-auth.dto'; | 12 | import { UpdateAuthDto } from './dto/update-auth.dto'; |
| @@ -13,7 +13,7 @@ import { UpdateUserDto } from './dto/update-user.dto'; | @@ -13,7 +13,7 @@ import { UpdateUserDto } from './dto/update-user.dto'; | ||
| 13 | 13 | ||
| 14 | @Controller('users') | 14 | @Controller('users') |
| 15 | export class UsersController { | 15 | export class UsersController { |
| 16 | - constructor(private readonly usersService: UsersService) { } | 16 | + constructor(private readonly usersService: UsersService) {} |
| 17 | 17 | ||
| 18 | @Post() | 18 | @Post() |
| 19 | create(@Body() createUserDto: CreateUserDto) { | 19 | create(@Body() createUserDto: CreateUserDto) { |
| @@ -7,4 +7,4 @@ import { PrismaService } from 'src/config/prisma.service'; | @@ -7,4 +7,4 @@ import { PrismaService } from 'src/config/prisma.service'; | ||
| 7 | controllers: [UsersController], | 7 | controllers: [UsersController], |
| 8 | providers: [UsersService, PrismaService], | 8 | providers: [UsersService, PrismaService], |
| 9 | }) | 9 | }) |
| 10 | -export class UsersModule { } | 10 | +export class UsersModule {} |
| @@ -5,7 +5,7 @@ import { PrismaService } from 'src/config/prisma.service'; | @@ -5,7 +5,7 @@ import { PrismaService } from 'src/config/prisma.service'; | ||
| 5 | 5 | ||
| 6 | @Injectable() | 6 | @Injectable() |
| 7 | export class UsersService { | 7 | export class UsersService { |
| 8 | - constructor(private prisma: PrismaService) { } | 8 | + constructor(private prisma: PrismaService) {} |
| 9 | create(createUserDto: CreateUserDto) { | 9 | create(createUserDto: CreateUserDto) { |
| 10 | return 'This action adds a new user'; | 10 | return 'This action adds a new user'; |
| 11 | } | 11 | } |
Please
register
or
login
to post a comment