nestjs_auth ini...
This commit is contained in:
parent
4cd14dbb6d
commit
b59ddbe6ec
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable prettier/prettier */
|
||||||
import { Controller, Get, Post, Request, UseGuards } from '@nestjs/common'
|
import { Controller, Get, Post, Request, UseGuards } from '@nestjs/common'
|
||||||
import { AuthService } from './auth.service'
|
import { AuthService } from './auth.service'
|
||||||
import { JwtAuthGuard } from './guards/jwt.authguard'
|
import { JwtAuthGuard } from './guards/jwt.authguard'
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable prettier/prettier */
|
||||||
//참고 : https://velog.io/@junguksim/NestJS-노트-3-Authentication
|
//참고 : https://velog.io/@junguksim/NestJS-노트-3-Authentication
|
||||||
// https://docs.nestjs.com/security/authorization
|
// https://docs.nestjs.com/security/authorization
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable prettier/prettier */
|
||||||
import { Injectable } from '@nestjs/common'
|
import { Injectable } from '@nestjs/common'
|
||||||
import { JwtService } from '@nestjs/jwt'
|
import { JwtService } from '@nestjs/jwt'
|
||||||
import { UserService } from '../user/user.service'
|
import { UserService } from '../user/user.service'
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable prettier/prettier */
|
||||||
import { HttpException, HttpStatus } from '@nestjs/common'
|
import { HttpException, HttpStatus } from '@nestjs/common'
|
||||||
import { NestFactory } from '@nestjs/core'
|
import { NestFactory } from '@nestjs/core'
|
||||||
import { AppModule } from './app.module'
|
import { AppModule } from './app.module'
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable prettier/prettier */
|
||||||
import {
|
import {
|
||||||
Body,
|
Body,
|
||||||
Controller,
|
Controller,
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable prettier/prettier */
|
||||||
import { Module } from '@nestjs/common'
|
import { Module } from '@nestjs/common'
|
||||||
import { PrismaService } from '../prisma.service'
|
import { PrismaService } from '../prisma.service'
|
||||||
import { UserService } from './user.service'
|
import { UserService } from './user.service'
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable prettier/prettier */
|
||||||
import { Injectable } from '@nestjs/common'
|
import { Injectable } from '@nestjs/common'
|
||||||
import { Prisma, User } from '@prisma/client'
|
import { Prisma, User } from '@prisma/client'
|
||||||
import { PrismaService } from '../prisma.service'
|
import { PrismaService } from '../prisma.service'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user