Jacob Bennett 5b3c5f3f4e Don't return a login page to a JSON request
Currently, any unauthorized API requests that pass through the `auth` middleware get a redirect to the login page. Adding the `wantsJson` flag to the conditional corrects this behavior.
2016-01-22 10:01:39 -06:00
..
2015-06-01 15:46:45 +01:00
2015-12-13 14:31:22 -06:00
2015-12-14 09:44:17 -06:00