Skip to content

Instantly share code, notes, and snippets.

@santoshyadavdev
Created January 12, 2020 19:39
Show Gist options
  • Save santoshyadavdev/bcc4ef0c010b693e5cc268c6ff742232 to your computer and use it in GitHub Desktop.
Save santoshyadavdev/bcc4ef0c010b693e5cc268c6ff742232 to your computer and use it in GitHub Desktop.
import { Controller } from '@nestjs/common';
import { InMemoryDBService, InMemoryDBEntityAsyncController } from '@nestjs-addons/in-memory-db';
import { ProductEntity } from './entities/product.entity';
@Controller('product')
export class ProductController extends InMemoryDBEntityAsyncController<ProductEntity> {
constructor(private productService: InMemoryDBService<ProductEntity>) {
super(productService);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment