Fixed the api route authentication
Fixed the api route authentication

- Shouldn't redirect to login if api route authentication fails. Oauth2
has standard responses, and apps have to be compliant.
- Cleaned up the route setup.

leftiness/ton-hub,leftiness/ton-hub