Skip to content

Tag: node.js

Apply filters to a list and show data

Front-end: After return(): Service.js: Controller.js: So, this page of my web-app serves to show a list of all the companies saved in my database. I created a filter that allows you to show only those of a certain type, via findByType. I would like to insert other filters such as: findByRevenue, findByEmploye…

Differentiate 2 routes of a controller (NestJS)

EDIT: When I move the @Get(‘/random’) above the 2 other routes, it’s working… Weird I’m doing a NestJS server that just get some routes of the Breaking Bad API and displays the JSON in the routes of the server, I want to create 3 routes : 1 that returns a JSON of all characters o…