From bc8a49fbe946afa9d85748567f328e20a696f849 Mon Sep 17 00:00:00 2001 From: GeekOfWires Date: Sun, 20 Sep 2020 05:19:54 -0400 Subject: [PATCH] Finally, tell Express to include the stats API route for stats --- api/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/index.js b/api/index.js index 9693d29..f01402e 100644 --- a/api/index.js +++ b/api/index.js @@ -5,6 +5,7 @@ import api_auth from './authentication.js' import api_user from './user.js' import api_info from './info.js' import api_admin from './admin.js' +import api_stats from './stats.js' const VERSION = JSON.parse(fs.readFileSync('package.json', 'utf8')).version; const api = express.Router(); @@ -23,6 +24,7 @@ api.use(bodyParser.urlencoded({ extended: true })); api.use(api_auth) api.use(api_info) +api.use(api_stats) // These calls are gated within their respective routers api.use(api_user)