Added routes to the search module

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #1901
| Refs tickets  | #1788
| License       | MIT
| Doc PR        | ---

This also fixes #1901.
No, that's done automatically. I just re-checked.