Backend Class 3
Love Babber (BD-3)
Creating Routes and doing funcnalitiy in the controller folder.
Follow some steps of Creating (put, delete, get) router
Create (getTodo , putTodo, deleteTodo) files in Controller folder
See all the examples ๐
getTodo.js folder code
Get data by Id name
updateTodo.js file code
deleteTodo.js file code
todos.js file code (where we define all the router's paths)
ย