<commit_before>## Description
Read more about the Cerebral router in the **Routing** section.

**Important!** Currently the router has to be namespaced to `router`.

### Install
`$ npm install cerebral-module-router`

### Use

```javascript

import controller from './controller';
import RouterModule from 'cerebral-module-router';

controller.modules({
  router: RouterModule({
    '/': 'home.routed'
  }, {
    onlyHash: true
  })
});
```

#### Services

```javascript

// Gives you the current recording
services.{namespace}.redirect('/to/some/url');
```

#### Action factories

```javascript

import {redirect} from 'cerebral-module-router';

export default [
  [<commit_msg>Fixed typo<commit_after>## Description
Read more about the Cerebral router in the **Routing** section.

**Important!** Currently the router has to be namespaced to `router`.

### Install
`$ npm install cerebral-module-router`

### Use

```javascript

import controller from './controller';
import RouterModule from 'cerebral-module-router';

controller.modules({
  router: RouterModule({
    '/': 'home.routed'
  }, {
    onlyHash: true
  })
});
```

#### Services

```javascript

services.{namespace}.redirect('/to/some/url');
```

#### Action factories

```javascript

import {redirect} from 'cerebral-module-router';

export default [
  [
{'fraction_non_alphanumeric': 0.1606060606060606, 'fraction_numerical': 0.0, 'mean_word_length': 4.550420168067227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2241459', 'n_tokens_mistral': 419, 'n_tokens_neox': 392, 'n_words': 114}