SHARE
TWEET

Untitled

a guest Jul 18th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Controller } from '@nestjs/common';
  2. import { Crud, CrudController } from '@nestjsx/crud';
  3. import { User } from '../../entities/user.entity';
  4. import { UsersService } from '../../services/users/users.service';
  5.  
  6. @Crud({
  7.   model: {
  8.     type: User
  9.   }
  10. })
  11. @Controller('users')
  12. export class UsersController implements CrudController<User>{
  13.   constructor(public service: UsersService){}
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top