---
title: Route
project: LessCode
version: 1.0
section: reference
language: en
license: MIT
url: https://totaljs.es/docs/lesscode/1-0/reference/route/
updated: 2026-11-19T04:41:17.865Z
---

# Route

> The settings of the Route component, which receives HTTP requests.

**Route** registers an HTTP address on the LessCode server and sends each request to its **Request** output. The address works after you [apply](../../guides/apply-and-save/). A Route must lead to a [Response](../response/), which answers the request.

![The Route settings](/files/Jap1b83DO60f.webp)

| Setting | What it does |
|---|---|
| **Method** | `GET`, `POST`, `PUT`, `PATCH`, `DELETE` or `API`. |
| **Relative URL address** | The path, for example `/api/hello/`. It is added to the address of LessCode. |
| **Allow uploading files (form data)** | For requests that upload files. **Read files to** sets the form of the files. |
| **Timeout** | The time limit of a request, in milliseconds. Default `5000`. |
| **Request limit** | The largest request body, in kB. Default `5120`. |
| **Send to output** | What the node sends: **Everything**, **Payload**, **Query arguments**, **Files**, **Dynamic params**, **Headers**, **Cookies** or **User**. |

## What the node sends

With **Everything**, the data is an object with the request details, among them `query` (query arguments), `body` (the request body), `headers`, `params`, `cookies`, `ip` and `url`. For example, `value.query.name` reads `?name=Jane`. See [Create a GET endpoint](../../recipes/get-endpoint/).

With **Payload**, the data is the request body only. See [Create a POST endpoint](../../recipes/post-endpoint/).

## Things to know

- While the flow is [paused](../../guides/pause-flow/), the address answers `503`.
