Fix auth prompting for API.

This commit is contained in:
Jonathan Cremin 2015-12-07 19:36:50 +00:00
parent c20ec11cd2
commit 4b9a271115

View file

@ -23,7 +23,7 @@ router.use(cors({
credentials: true,
}));
router.use('/*', function* authMiddleware(next) {
router.use('*', function* authMiddleware(next) {
try {
yield next;
if (this.response.status === 404 && !this.response.body) {