I recently started learning Node JS. And things went pretty well. I saw an online tutorial and accepted GET request in my server.js file. 

Since I'm from a Java background, a few questions arrived into my mind and I searched them all over the Internet but could not find them out.

1. Do I need to accept all my requests within request.js file. Suppose if I have hundreds of GET api requests do I need to write them in my server.js file which I feel is the only entry point in Node JS.

For Example:

```
var express=require("express");
var app=express();
app.get("/api/request1/",function(){
    //some code here
})
app.get("/api/request2/",function(){
    //some code here
})
.
.  
.
.
app.get("/api/request100/",function(){
    //some code here
})

```

This would make my code cumbersome and difficult to manage. As I said I have a Java background and I used to separate my code in different Servlets.

2. Secondly is it possible to have another entry point in Node JS. Since my application is quite big. Also is there a way to use Node Modules to segregate/separate my code within different modules and then include them in server.js.

Please specify some good resource or a technique how to overcome this issue.