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.
ok. I'm no expert on that stuff, so was just sounding the alarm if someone else had an opinion (@drak @Guite ) but I trust you to do it right.