# 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

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1689310974765/3ec6d787-1079-48cb-883a-a20633bcdcfa.png align="center")

> Get data by Id name

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1689311009137/d87f07ac-9a8c-4897-8c00-6007e0099191.png align="center")

> updateTodo.js file code

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1689311143380/ced97018-d21a-4983-b631-a48a5f7c01d6.png align="center")

> deleteTodo.js file code

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1689311229388/f2c5aae7-d0e7-4484-90a0-dd238535bb96.png align="center")

> todos.js file code (where we define all the router's paths)

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1689311336945/edcd6c6c-827c-4cf1-9b62-8a9a7e09413c.png align="center")
