Refactor doc route to use controller.

Signed-off-by: crynobone <crynobone@gmail.com>