From 4b9a2711156cbd142a135f9abf6697eed323afa9 Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Mon, 7 Dec 2015 19:36:50 +0000 Subject: [PATCH] Fix auth prompting for API. --- api/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app.js b/api/app.js index 4ec16c0..364906f 100644 --- a/api/app.js +++ b/api/app.js @@ -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) {