> For the complete documentation index, see [llms.txt](https://node-api.gitbook.io/nodpi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://node-api.gitbook.io/nodpi/create-own-route.md).

# Create new route

Note: If your application is still running, press CTRL+C to stop it before calling the command

#### Create route with name \`users\` <a href="#starting-the-project" id="starting-the-project"></a>

```
nodpi r users 
```

Answer the prompts as follows:

```
? Create route with CRUD function? (Use arrow keys)
❯ Yes 
  No
```

Users route will be created with following folder structure

![Route structure ](https://3155355292-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5FbtH8hXeIQb472XOp%2F-M5G0AV3OOlNss99-VQX%2F-M5GsHP9HD6XMTP0ZVVv%2FScreenshot%202020-04-19%20at%203.28.28%20PM.png?alt=media\&token=cf431ece-b80d-4126-9e2b-2d79814130b1)

Copy paste following route in your main server file in api routes block

```
app.use('/api/users', require('./users/users.controller'));
```

**You can also create a route by providing folder name as follows**

```
nodpi r user user_api
```

![](https://3155355292-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5FbtH8hXeIQb472XOp%2F-M5G0AV3OOlNss99-VQX%2F-M5GtJbeOnLVvj4d-CoL%2FScreenshot%202020-04-19%20at%203.33.49%20PM.png?alt=media\&token=825d07a1-45b3-4f4a-8672-e2f9af761946)
