Why we make controller folder

why we make controller folder what is the use of it

Controller folder consist of all your db related function that you need to perform in your code while making a request to the server