# Runtime

When a script is saved, a new runtime environment is created which contains all routes, policies, triggers, jobs, and object exports. Runtime environments can be accessed via the environment or the environment object scripts.&#x20;

"Runtime" decorators are evaluated during execution. The differentiation between static and runtime exists in Cortex because static runtime are evaluated at compile-time.

{% tabs %}
{% tab title="Runtime" %}

```javascript
return (env.read('runtime')).routes.map(route => {

  const { configuration: { method, path } } = route

  return `${method} /routes/${path}`

})
```

{% endtab %}

{% tab title="Result" %}

```javascript
{
  "data": [
    "get /routes/get_public_group",
    "get /routes/export",
    "get /routes/axon_stats_task_responses",
    "post /routes/c_patients_route",
    "post /routes/c_patients_callback",
    "post /routes/account_public_user_link",

        [ ... ]

    "get /routes/reports/:objectId/:outputFormat",
    "get /routes/review_tab_info",
    "get /routes/site_tab_info",
    "get /routes/task_details/:taskResponseId",
    "get /routes/task_step_details/:taskResponseId",
    "post /routes/uploadQueryRule"
  ],
  "hasMore": false,
  "object": "list"
}
```

{% endtab %}
{% endtabs %}
