apidoc: fix behaviour on doc routes
The apidoc route clobbered the api route incorrectly when both routes
were the same and the api route was a POST route. The apidoc route now
only renders if the request was a GET if the routes are the same.