Finally, tell Express to include the stats API route for stats

This commit is contained in:
GeekOfWires 2020-09-20 05:19:54 -04:00
parent 4b314a147d
commit bc8a49fbe9

View file

@ -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)