# Routing

Routes enable the outside world to interact with your app via URLs.

Routes are registered inside the Routes directory file.

# Basic Routing

To create a new route, use the command:

expresswebcli make-route [ROUTE_NAME] [ROUTE_PATH]

The most basic route binding requires a URL and a closure:

Route.get('/', () => 'Hello ExpresswebJs')

The return value of the closure will be sent back to the client as a response.

You can also bind a route to a controller using a controller.method signature:

Route.get('users', at('UserController.index'))

The above signature UserController.index refers to the App/Http/Controller/UserController.js file index method.